Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Copy peakcall.tab if labels.txt in rawdata directory
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Nov 20, 2018
1 parent 5549023 commit efa6a25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gui/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,12 @@ def make_symlinks(self):
cmd="for f in `ls {0}/*[._]vcf`;do ln -s $f {1};done".format(gvcfspath,self.workpath.get())
#print(cmd,"\n","Pipeline_name", pl,"\n" , "Data", data)
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
elif pl == 'ChIPseq':
if os.path.isfile(os.path.join(data, "peakcall.tab")):
print("Found 'peakcall.tab': Symlinking file!")
cmd="cp {0}peakcall.tab {1}".format(data, self.workpath.get())
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)

else:
cmd="for f in `ls {0}*[._]{1}`;do ln -s $f {2};done".format(data,FT, self.workpath.get())
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
Expand Down

0 comments on commit efa6a25

Please sign in to comment.