-
Notifications
You must be signed in to change notification settings - Fork 128
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 pbtk #937
Merged
Merged
add pbtk #937
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
FROM ubuntu:jammy as app | ||
|
||
ARG PBTK_VER="3.1.1" | ||
|
||
LABEL base.image="ubuntu:jammy" | ||
LABEL dockerfile.version="1" | ||
LABEL software="pbtk" | ||
LABEL software.version="${PBTK_VER}" | ||
LABEL description="PacBio BAM toolkit" | ||
LABEL website="https://github.com/PacificBiosciences/pbtk" | ||
LABEL license="https://github.com/PacificBiosciences/pbtk/blob/main/LICENSE.txt" | ||
LABEL maintainer="Kutluhan Incekara" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
wget &&\ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN wget --no-check-certificate https://github.com/PacificBiosciences/pbtk/releases/download/v${PBTK_VER}/pbtk.tar.gz &&\ | ||
tar -C /usr/local/bin/ -xvf pbtk.tar.gz &&\ | ||
rm pbtk.tar.gz | ||
|
||
ENV LC_ALL=C | ||
|
||
CMD bam2fasta -h;\ | ||
bam2fastq -h;\ | ||
ccs-kinetics-bystrandify -h;\ | ||
extracthifi -h;\ | ||
pbindex -h;\ | ||
pbindexdump -h;\ | ||
pbmerge -h;\ | ||
zmwfilter -h | ||
|
||
WORKDIR /data | ||
|
||
## Test ## | ||
FROM app as test | ||
|
||
RUN wget -q --no-check-certificate https://downloads.pacbcloud.com/public/dataset/HiFiViral/Nov_2021/m64012_210821_095651.hifi_reads.bam | ||
|
||
RUN pbindex m64012_210821_095651.hifi_reads.bam &&\ | ||
zmwfilter --include 1,2,4,8,16 m64012_210821_095651.hifi_reads.bam test.bam &&\ | ||
zmwfilter --include 18,19,22,24,33 m64012_210821_095651.hifi_reads.bam test2.bam &&\ | ||
pbindex test.bam &&\ | ||
pbindexdump test.bam.pbi > test.json &&\ | ||
bam2fasta -o test test.bam &&\ | ||
bam2fastq -o test test.bam &&\ | ||
extracthifi test.bam test.hifi.bam &&\ | ||
ccs-kinetics-bystrandify test.bam test.bystrand.bam &&\ | ||
pbmerge test.bam test2.bam > test.merged.bam &&\ | ||
echo $(ls | grep test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# pbtk container | ||
|
||
Main tool: [pbtk](https://github.com/PacificBiosciences/pbtk) | ||
|
||
Code repository: https://github.com/PacificBiosciences/pbtk | ||
|
||
Basic information on how to use this tool: | ||
- executables: | ||
- bam2fasta | ||
- bam2fastq | ||
- ccs-kinetics-bystrandify | ||
- extracthifi | ||
- pbindex | ||
- pbindexdump | ||
- pbmerge | ||
- zmwfilter | ||
- help: -h, --help | ||
- version: --version | ||
- description: PacBio BAM toolkit | ||
|
||
Full documentation: https://github.com/PacificBiosciences/pbtk | ||
|
||
## Example Usage | ||
|
||
```bash | ||
# bam2fasta | ||
bam2fasta -o out in.bam | ||
# bam2fastq | ||
bam2fastq -o out in_1.bam in_2.bam in_3.xml in_4.bam | ||
# ccs-kinetics-bystrandify | ||
ccs-kinetics-bystrandify in.bam out.bam | ||
# extracthifi | ||
extracthifi in.bam out.bam | ||
# pbindex | ||
pbindex in.bam | ||
# pbindexdump | ||
pbindexdump in.bam.pbi > out.json | ||
# pbmerge | ||
pbmerge in1.bam in2.bam in3.bam > out.bam | ||
# zmwfilter | ||
zmwfilter --include 1,2,4,8,16 in.bam out.bam | ||
``` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these print to stderr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, but I am not sure.