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

Commit

Permalink
Merge branch 'activeDev' of https://github.com/CCBR/Pipeliner into ac…
Browse files Browse the repository at this point in the history
…tiveDev
  • Loading branch information
tovahmarkowitz committed Sep 25, 2018
2 parents f0b0402 + b5e81e3 commit 7e6e977
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion gui/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,23 @@ def make_symlinks(self):
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
Out = p.stdout.read()
else:
cmd="for f in `ls {0}*[._]{1}`;do ln -s $f {2};done".format(data,FT, self.workpath.get())
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()
if pl == 'ExomeSeq' or pl == 'GenomeSeq':
print("\n\nChecking for 'bams/' or 'gvcfs/' directories...")
if os.path.isdir(os.path.join(data,"bams")):
print("Found 'bams/' directory: Symlinking bam files!")
bamspath = os.path.join(data,"bams")
cmd="for f in `ls {0}/*[._]ba{{m,i}}`;do ln -s $f {1};done".format(bamspath,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)
if os.path.isdir(os.path.join(data,"gvcfs")):
print("Found 'gvcfs/' directory: Symlinking vcf files!")
gvcfspath = os.path.join(data,"gvcfs")
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)

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

0 comments on commit 7e6e977

Please sign in to comment.