Skip to content

Can't write peptide genbank files with extra long headers #3732

Closed

Description

@seanrjohnson

This line

splitline[4].strip() == ""

should be changed to:

splitline[3].strip() == "aa"

because in genbank peptide files there isn't a molecule type, so that field gets eaten by the split and it won't ever be ""

Activity

  1. peterjc commented on Sep 16, 2021

    @peterjc
    Member

    I think you're right - would you like to submit that as a pull request please?

  2. peterjc commented on Sep 16, 2021

    @peterjc
    Member

    You may be right, I've not looked at NCBI GenPept files to check.

    But still, would you like to submit that as a pull request please, with a test case ideally.

  3. seanrjohnson commented on Sep 16, 2021

    @seanrjohnson
    ContributorAuthor

    Ok, I submitted the patch. Also, here is a link to an example peptide record from NCBI, so you can see that the locus line does not have a molecule type specified, but it has the rest of the locus fields.

    https://www.ncbi.nlm.nih.gov/Class/MLACourse/Modules/Format/sample_record_genpept.html

  4. seanrjohnson commented on Oct 5, 2021

    @seanrjohnson
    ContributorAuthor

    Anything else you need from me on this? I saw that a couple of the CI tests failed, but as far as I can tell, the failed tests don't have anything to do with the code I changed.

  5. added a commit that references this issue on Oct 21, 2022
    9504e99
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