Skip to content

Conversation

@SimHolz
Copy link

@SimHolz SimHolz commented Sep 3, 2021

I realised there is a problem with the annotation.
When you load bam files which do not include all chromosomes annotated in the config (like with the sample bams) NA is introduced as chromosome name which later throws an error (supplied 'seqlevels' cannot contain NAs or empty strings ("")).

I changed the code so it explicitly checks whether the chromosome names are listed in the filter or not. This omits the introduction of NAs.
I am not sure whether the order of the chromosomes is important as my solution doesn't change that while the earlier code adjusted the order to the order specified in the annotation. So maybe the code has to be adjusted for that additionally.

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.

1 participant