Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add revcomp_i5 task and bump reports docker #277

Merged
merged 2 commits into from
Apr 30, 2021
Merged

add revcomp_i5 task and bump reports docker #277

merged 2 commits into from
Apr 30, 2021

Conversation

dpark01
Copy link
Member

@dpark01 dpark01 commented Apr 29, 2021

No description provided.

for row in sheet:
if row.get('barcode_2')
and all(s in 'ATGC' for s in row['barcode_2']):
row['barcode_2'] = str(Bio.Seq.Seq(row['barcode_2']).reverse_complement())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that biopython increases the size of the docker image much, but builtins could be used for reverse complementing via bytearray.maketrans() (ex. here; could extend to ambiguity codes.). Probably faster too, though that's not a concern for sample sheets.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well the general purpose py3-bio docker image already had it, so I figured I'd keep it simple

@tomkinsc
Copy link
Member

This will come in handy! Especially if we automatically re-try demux with a rev-comped sample sheet for failing runs where that's a plausible fix.

@dpark01
Copy link
Member Author

dpark01 commented Apr 29, 2021

Yeah then we just have to detect the failure mode reliably and then we can use this to try it…

@dpark01 dpark01 merged commit 04ccd7a into master Apr 30, 2021
@dpark01 dpark01 deleted the dp-reports branch April 30, 2021 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants