Skip to content

Some more ideas #6

Description

@Midnighter

Having used CoPTR for a little bit and looked through the source code briefly, I had a few ideas for changes:

  1. I had a need for building a large index which required me to pass the option to bowtie2. This gave me the idea: What if instead of creating explicit options on coptr that are passed to bowtie2, the argument parsing is changed such that all options after -- are directly given to bowtie2? Or alternatively, all unrecognized options could be passed to bowtie2 if there are no conflicting option names. I think that's more flexible and future proof. So something like:

    coptr map index fastq output -- --threads 10 --mm --seed 1234
  2. Your print functions somewhat re-invent logging levels. It should be quite easy to replace them.

  3. I saw that you use subprocess calls to rm to delete files. Using os.remove would make that platform independent.

Let me know if any of those proposals sound good to you and I can create PRs for them.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions