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

Use SAM headers from index directory's <prefix>.hdr if it exists #348

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Mar 18, 2024

  1. Use SAM headers from index directory's <prefix>.hdr if present

    Introduce a <prefix>.hdr file alongside the other index files, useful for
    setting up detailed `@SQ` headers etc to be used by default when mapping.
    
    Output SAM headers from: -H options; .hdr file stored with the index files;
    the basic hard-coded `@HD`/`@SQ` default headers. An `@HD` header is always
    printed, with -H overriding one from <prefix>.hdr (if any), which overrides
    the default one. A set of `@SQ` headers is always printed, with -H options
    overriding <prefix>.hdr overriding the default, similarly. Other headers
    specified in either -H or <prefix>.hdr are all output.
    
    If -H includes `@SQ` headers, we consider that the user has carefully
    set up all headers to be output and ignore <prefix>.hdr entirely.
    
    Add descriptions of <prefix>.alt (brief) and <prefix>.hdr (complete)
    to the manual page. This <prefix>.hdr file is implemented for mem, bwase,
    and bwape. It is not implemented for bwasw, which is deprecated.
    jmarshall committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    46dee88 View commit details
    Browse the repository at this point in the history
  2. Also accept SAM headers from <baseprefix>.dict if present

    Now outputs SAM headers from: -H options; .hdr file stored with the
    index files if present, or otherwise a .dict file if that is present;
    the basic hard-coded `@HD`/`@SQ` default headers.
    jmarshall committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    d55a779 View commit details
    Browse the repository at this point in the history