Skip to content

Commit

Permalink
Do not exclude samples whose project ID is empty (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfornika authored Jun 22, 2023
1 parent 99e4936 commit 062f306
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions symlink-seqs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def has_necessary_fields_for_symlinking_miseq(sample):
else:
conditions.append(False)

if 'sample_project' in sample and sample['sample_project'] != "":
if 'sample_project' in sample:
conditions.append(True)
else:
conditions.append(False)
Expand All @@ -289,14 +289,15 @@ def has_necessary_fields_for_symlinking_nextseq(sample):
:return: Whether or not the sample has the appropriate fields necessary for symlinking
:rtype bool:
"""
jdump(sample)
selected = False
conditions = []
if 'sample_id' in sample and sample['sample_id'] != "":
conditions.append(True)
else:
conditions.append(False)

if 'project_name' in sample and sample['project_name'] != "":
if 'project_name' in sample:
conditions.append(True)
else:
conditions.append(False)
Expand Down Expand Up @@ -324,7 +325,7 @@ def has_necessary_fields_for_symlinking_gridion(sample):
else:
conditions.append(False)

if 'project_id' in sample and sample['project_id'] != "":
if 'project_id' in sample:
conditions.append(True)
else:
conditions.append(False)
Expand Down

0 comments on commit 062f306

Please sign in to comment.