Skip to content

QualityIO Sequence and quality captions differ #1898

Description

@jfallmann

I am reporting a problem with Biopython 1.72 , Python 3.7.1 on Fedora 29
When reading in FASTQ files with SeqIO with differing lines 1 (header) and 3 (optional) we get the above error message. We use Biopython to post-process unmapped reads from metagenomics mapping and tend to use line three to add information about runs and metagenomes used, which seems to be a topic of controversial opinions, however, I fail to understand why

# The title here is optional, but if present must match!
second_title = line[1:].rstrip()
if second_title and second_title != title_line:
raise ValueError("Sequence and quality captions differ.")
break

is so strict about this. Is this really necessary? And if yes is there a way to circumvent this?
Thanks for any help, highly appreciated

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions