Skip to content

Conversation

JGroos-16
Copy link
Contributor

Switched from dictionary to pandas dataframe and fixed some minor issues

@@ -1,2 +1,8 @@
.coverage
coverage.lcov
bowtie2.1.bt2
Copy link
Member

Choose a reason for hiding this comment

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

you might want to be more flexible (as you don't know how many parts will be generated) by using wildcards, i.e. bowtie2.*.bt2



def write(region, seq_chrom, annoted_ref):
region = {'V1_start': '', 'V1_end': '',
Copy link
Member

Choose a reason for hiding this comment

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

I don't see the reason why you "initialize" the dict with "empty" strings. Can't you check for presents of the key in downstream code?
e.g. if region['V1_start'] != '': --> if 'V1_start' in region: and once you set the value ensure that it is not empty?!

@JGroos-16 JGroos-16 closed this Jul 21, 2022
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.

2 participants