Skip to content

Commit

Permalink
modified: cre.locate_sample.py
Browse files Browse the repository at this point in the history
	deleted:    bam.validate.sh
	deleted:    fixit.sh
	deleted:    gemini.vep2gemini.sh
  • Loading branch information
naumenko-sa committed Jul 14, 2017
1 parent 3ccee06 commit 2a8b7df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cre.locate_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@

if match:
prefix=str(int(match.group(0))/100)
report_path = prefix+'x/'+family+'/'+family
report_path = prefix+'x/'+family

report=0
bam=0

errors = []

if os.path.isfile(report_path+'.csv'):
if os.path.isfile(report_path+'/'+family+'.csv'):
#print("Report exists")
report=1
else:
errors.append('Error: no report')

if os.path.isfile(report_path+'_'+sample_only+'.bam'):
if os.path.isfile(report_path+'/'+sample+'.bam'):
#print("Bam exists")
bam=1
else:
errors.append(' ERROR: no bam')

if (bam==1 and report==1):
print(sample+'\t'+os.getcwd()+"/"+family+"\t"+os.getcwd()+"/"+report_path+'.bam')
print(sample+'\t'+os.getcwd()+"/"+report_path+"\t"+os.getcwd()+"/"+report_path+'/'+sample+'.bam')
else:
print(sample+'\t'+' '.join(errors))
else:
Expand Down

0 comments on commit 2a8b7df

Please sign in to comment.