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

add recipe for pbptyper #36222

Merged
merged 2 commits into from
Aug 4, 2022
Merged

add recipe for pbptyper #36222

merged 2 commits into from
Aug 4, 2022

Conversation

rpetit3
Copy link
Member

@rpetit3 rpetit3 commented Aug 3, 2022

This PR adds pbptyper, a tool for in silico PBP typing of S. pneumoniae assemblies


Please read the guidelines for Bioconda recipes before opening a pull request (PR).

  • If this PR adds or updates a recipe, use "Add" or "Update" appropriately as the first word in its title.
  • New recipes not directly relevant to the biological sciences need to be submitted to the conda-forge channel instead of Bioconda.
  • PRs require reviews prior to being merged. Once your PR is passing tests and ready to be merged, please issue the @BiocondaBot please add label command.
  • Please post questions on Gitter or ping @bioconda/core in a comment.
Please use the following BiocondaBot commands:

Everyone has access to the following BiocondaBot commands, which can be given in a comment:

@BiocondaBot please update Merge the master branch into a PR.
@BiocondaBot please add label Add the please review & merge label.
@BiocondaBot please fetch artifacts Post links to CI-built packages/containers.
You can use this to test packages locally.

For members of the Bioconda project, the following command is also available:

@BiocondaBot please merge Upload built packages/containers and merge a PR.
Someone must approve a PR first!
This reduces CI build time by reusing built artifacts.

Also, the bot watches for comments from non-members that include @bioconda/<team> and will automatically re-post them to notify the addressed <team>.

@rpetit3
Copy link
Member Author

rpetit3 commented Aug 3, 2022

@BiocondaBot please fetch artifacts

@BiocondaBot
Copy link
Collaborator

Package(s) built on Azure are ready for inspection:

Arch Package Zip File
noarch pbptyper-1.0.0-hdfd78af_0.tar.bz2 LinuxArtifacts

You may also use conda to install these after downloading and extracting the appropriate zip file. From the LinuxArtifacts or OSXArtifacts directories:

conda install -c packages <package name>

Docker image(s) built (images are in the LinuxArtifacts zip file above):

Package Tag Install with docker
pbptyper 1.0.0--hdfd78af_0
showgzip -dc LinuxArtifacts/images/pbptyper:1.0.0--hdfd78af_0.tar.gz | docker load

@rpetit3
Copy link
Member Author

rpetit3 commented Aug 3, 2022

Testing

Conda

conda install LinuxArtifacts/packages/noarch/pbptyper-1.0.0-hdfd78af_0.tar.bz2

which pbptyper
/home/robert_petit/miniconda3/envs/test-pbptyper/bin/pbptyper

pbptyper --version
pbptyper, version 1.0.0

pbptyper --help

 Usage: pbptyper [OPTIONS]

 In silico Penicillin Binding Protein (PBP) typer for Streptococcus pneumoniae assemblies

╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│    --version                  Show the version and exit.                                                                                                      │
│ *  --assembly        TEXT     Input assembly in FASTA format (gzip is OK) [required]                                                                          │
│    --db              TEXT     Path to the input database [default: /home/robert_petit/miniconda3/envs/test-pbptyper/share/pbptyper-1.0.0]                        │
│    --prefix          TEXT     Prefix to use for output files [default: basename of input]                                                                     │
│    --outdir          TEXT     Directory to save output files [default: ./]                                                                                    │
│    --min_pident      INTEGER  Minimum percent identity to count a hit [default: 95]                                                                           │
│    --min_coverage    INTEGER  Minimum percent coverage to count a hit [default: 95]                                                                           │
│    --help                     Show this message and exit.                                                                                                     │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯


# Testing 
pbptyper --assembly test/SRR2912551.fna.gz
Running TBLASTN for 1A...
TBLASTN results written to ./SRR2912551.fna-1A.tblastn.tsv

Running TBLASTN for 2B...
TBLASTN results written to ./SRR2912551.fna-2B.tblastn.tsv

Running TBLASTN for 2X...
TBLASTN results written to ./SRR2912551.fna-2X.tblastn.tsv

                                            Predicted PBP Type
┏━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ sample         ┃ pbptype ┃ 1A_coverage ┃ 1A_pident ┃ 2B_coverage ┃ 2B_pident ┃ 2X_coverage ┃ 2X_pident ┃
┡━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ SRR2912551.fna │ 23:0:2  │ 100         │ 100.000   │ 100         │ 100.000   │ 100         │ 100.000   │
└────────────────┴─────────┴─────────────┴───────────┴─────────────┴───────────┴─────────────┴───────────┘
Predicted pbp type result written to ./SRR2912551.fna.tsv

ls -lh *.tsv
-rw-r--r-- 1 robert_petit robert_petit 160K Aug  3 18:47 SRR2912551.fna-1A.tblastn.tsv
-rw-r--r-- 1 robert_petit robert_petit 210K Aug  3 18:47 SRR2912551.fna-2B.tblastn.tsv
-rw-r--r-- 1 robert_petit robert_petit 420K Aug  3 18:47 SRR2912551.fna-2X.tblastn.tsv
-rw-r--r-- 1 robert_petit robert_petit  139 Aug  3 18:47 SRR2912551.fna.tsv

Docker

gzip -dc LinuxArtifacts/images/pbptyper:1.0.0--hdfd78af_0.tar.gz | docker load
docker run --rm -u $(id -u):$(id -g) -v ${PWD}:/data quay.io/biocontainers/pbptyper:1.0.0--hdfd78af_0 pbptyper --assembly /data/test/SRR8654742.fna --outdir /data/
Running TBLASTN for 1A...
TBLASTN results written to /data/SRR8654742-1A.tblastn.tsv

Running TBLASTN for 2B...
TBLASTN results written to /data/SRR8654742-2B.tblastn.tsv

Running TBLASTN for 2X...
TBLASTN results written to /data/SRR8654742-2X.tblastn.tsv

                               Predicted PBP Type
┏━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━┓
┃ sample  ┃ pbptype ┃ 1A_cov… ┃ 1A_pid… ┃ 2B_cov… ┃ 2B_pid… ┃ 2X_cov… ┃ 2X_pi… ┃
┡━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━┩
│ SRR865… │ NEW:53… │ 100     │ 99.275  │ 100     │ 100.000 │ 100     │ 100.0… │
└─────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┴────────┘
Predicted pbp type result written to /data/SRR8654742.tsv


ls -lh *.tsv
-rw-r--r-- 1 robert_petit robert_petit 161K Aug  3 18:49 SRR8654742-1A.tblastn.tsv
-rw-r--r-- 1 robert_petit robert_petit 237K Aug  3 18:49 SRR8654742-2B.tblastn.tsv
-rw-r--r-- 1 robert_petit robert_petit 430K Aug  3 18:49 SRR8654742-2X.tblastn.tsv
-rw-r--r-- 1 robert_petit robert_petit  137 Aug  3 18:49 SRR8654742.tsv

Everything looks good

@rpetit3
Copy link
Member Author

rpetit3 commented Aug 3, 2022

@BiocondaBot please add label

@BiocondaBot BiocondaBot added the please review & merge set to ask for merge label Aug 3, 2022
@dpryan79
Copy link
Contributor

dpryan79 commented Aug 4, 2022

@BiocondaBot please merge

@BiocondaBot
Copy link
Collaborator

I will attempt to upload artifacts and merge this PR. This may take some time, please have patience.

@BiocondaBot BiocondaBot merged commit b759604 into master Aug 4, 2022
@BiocondaBot BiocondaBot deleted the rp3-add-pbptyper branch August 4, 2022 13:32
@rpetit3
Copy link
Member Author

rpetit3 commented Aug 4, 2022

Thank you!

jpfeuffer pushed a commit to OpenMS/bioconda-recipes that referenced this pull request Sep 7, 2022
Merge PR bioconda#36222, commits were: 
 * Update build.sh
 * add recipe for pbptyper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please review & merge set to ask for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants