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

Commit

Permalink
'peakcall.tab' is copied over if it's in the data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Oct 3, 2018
1 parent 1fd121f commit a4a0f20
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 @@ -623,6 +623,7 @@ def make_symlinks(self):
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)
Out = p.stdout.read()
print(pl)
if pl == 'ExomeSeq' or pl == 'GenomeSeq':
print("\n\nChecking for 'bams/' or 'gvcfs/' directories...")
if os.path.isdir(os.path.join(data,"bams")):
Expand All @@ -638,6 +639,11 @@ 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)

except Exception as e:
showerror("Error",str(e))
Expand Down

0 comments on commit a4a0f20

Please sign in to comment.