Skip to content

Commit

Permalink
modified: cre.locate_sample.py
Browse files Browse the repository at this point in the history
  • Loading branch information
naumenko-sa committed Jul 13, 2017
1 parent dac884d commit 3ccee06
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cre.locate_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,23 @@
report=0
bam=0

errors = []

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

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

if (bam==1 and report==1):
print(os.getcwd()+"/"+family+"\t"+os.getcwd()+"/"+report_path+'.bam')
print(sample+'\t'+os.getcwd()+"/"+family+"\t"+os.getcwd()+"/"+report_path+'.bam')
else:
print(sample+'\t'+' '.join(errors))
else:
print("Family ID is not starting with digital")

0 comments on commit 3ccee06

Please sign in to comment.