Skip to content

Commit

Permalink
Merge pull request #124 in SAT/pbmm2 from bugfix/TAK-316-add-demuxed-…
Browse files Browse the repository at this point in the history
…test to develop

* commit '2733035467f5db8bc32b954f75cbb457874a7910':
  Add single demux test case
  • Loading branch information
armintoepfer committed Jan 21, 2020
2 parents 18b68b5 + 2733035 commit ce25807
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 0 deletions.
Binary file added tests/cram/data/demultiplex.bc1009--bc1009.bam
Binary file not shown.
Binary file added tests/cram/data/demultiplex.bc1009--bc1009.bam.bai
Binary file not shown.
Binary file added tests/cram/data/demultiplex.bc1009--bc1009.bam.pbi
Binary file not shown.
23 changes: 23 additions & 0 deletions tests/cram/data/demultiplex.bc1009--bc1009.consensusreadset.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<pbds:ConsensusReadSet CreatedAt="2020-01-18T08:29:44" MetaType="PacBio.DataSet.ConsensusReadSet" Name="pacbio_dataset_consensusreadset-200118_162944922" Tags="" TimeStampedName="pacbio_dataset_consensusreadset-200118_162944922" UniqueId="35d947ed-f37c-53f4-09f1-4d72252bdee8" Version="3.0.1" xmlns:pbbase="http://pacificbiosciences.com/PacBioBaseDataModel.xsd" xmlns:pbds="http://pacificbiosciences.com/PacBioDatasets.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pacificbiosciences.com/PacBioDataModel.xsd">
<pbbase:ExternalResources>
<pbbase:ExternalResource MetaType="PacBio.ConsensusReadFile.ConsensusReadBamFile" ResourceId="demultiplex.bc1009--bc1009.bam" TimeStampedName="pacbio_consensusreadfile_consensusreadbamfile-200118_162944920" UniqueId="2836e255-361e-4547-a8e2-c7f515ed9b05">
<pbbase:FileIndices>
<pbbase:FileIndex MetaType="PacBio.Index.PacBioIndex" ResourceId="demultiplex.bc1009--bc1009.bam.pbi" TimeStampedName="pacbio_index_pacbioindex-200118_162944919" UniqueId="ce8cc429-70bb-44cd-943a-5317756ad566"/>
<pbbase:FileIndex MetaType="PacBio.Index.BamIndex" ResourceId="demultiplex.bc1009--bc1009.bam.bai" TimeStampedName="pacbio_index_bamindex-200118_162944919" UniqueId="cb3e77b5-c547-4b17-afc7-a08780a7d88e"/>
</pbbase:FileIndices>
</pbbase:ExternalResource>
</pbbase:ExternalResources>
<pbds:Filters>
<pbds:Filter>
<pbbase:Properties>
<pbbase:Property Name="movie" Operator="=" Value="m54006_200116_134114"/>
</pbbase:Properties>
</pbds:Filter>
</pbds:Filters>
<pbds:DataSetMetadata>
<pbds:TotalLength>21457684</pbds:TotalLength>
<pbds:NumRecords>5081</pbds:NumRecords>
</pbds:DataSetMetadata>
</pbds:ConsensusReadSet>

2 changes: 2 additions & 0 deletions tests/cram/data/demultiplex.bc1009--bc1009.ref.fasta
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
>ref
TGCCTCCTAATTACTTTGAGGACCCTCCCAAGCATGCTAGATTTGCTGAGCCTGCAGCCAGCCCCATAAGGAACTCCTGCATCCTGTATGCTGAGCAGAGCACAAACACTCATAAACTGAGGCCCATGCATGGCGTGACACCACAGTTCCACACCAAAGAGCAAGAGCCATAAAAACAGAACAGATACTTTCTAAATTGCTTTCATCAATCTTACTTTGAGAAGAGGATTTTTTGGCTGAAGCACGTGAACAGAACTGCCAAAATCCAAACTTTGTGAGCAGTGTTTGTTACTCAAAATTAGTGAATACCTCCTTTCTCAACAGCAAAATACAGAGAAATATGACAAATATGCATTTTATTTAAAATAACTATAAAACTATAAATAAACCTAATGCAGTTGATTTCAGAGCATGCTAAGAACCTTTAAAAGTTATTATTCTAGCCAGGCATGGTGGCTCACACCTGTAATCCCAGCACTTTGGGAGGCCGAGGTGGACAGATCACAAGGTCAGGAGTTCAAGACCAGCCTGGCCAACATGGTGAAACCCCATCTCTACTAAAAATACAAAAATTAGCTGGACATGGTGGTGGGCGCCTGTAATCCCAGCTACTCAGAAGGCTGAGGCAGGAGAAGCATTTGAACCTGGGAGGCAGAGACTGCAGTGAGCCGAGATTGTATCACTGCACTCCAGCCTGGGTGACAATGTGAGACTACATCTCAAAAAATATATAGATATATATTATTCTAAACTACTTTTGTTTTTAGAGCATTTTAAATCTATCTTACAATATGAACAGGTTATATCTGGCAGGATACATGAGGAACTGAAATAGTGCTTGTTCTTGGGGACAAAGTTAGGTACTCAGAGGAAAGGGGTGGAAGGAAGATATTTTAATTATTGCCCTTTTGTAATTACAGAATTTGTATCATGTCAATGTATTACTTATGCAAAAATAATACATTAAAAAAAATTTTTTTTGAGATAGAGTCTCGCTCTGTCACCCAGGCTGGAGTGCAGTGGCGTGATCTCAACTCACTGCAGACTCTGCCTCCCGGGTTCAAGCGATTTTCCTGCCTCAGCCTCCCAGGTAGCTTGGATTACAGGCACGTGCCACCATGACCAGCTAATTTTTGTATTTTTAGTAGAGACAGGGTTTCACCATGTTAGCCAGGCTGGTCTCAAACTCCTGACCTCAGGTGATTCGTCCACCTAGGCCTCCCAAAGTGCTCGGATTAAAGGTGTAAGCCACCTTGCCAGTCCTGATTAAATTTTTTAAATAAGGTAATCATATATTACCTTAAAGTAATGAAACAAAATCTATCTCCTTTGTCAAGGCAGCAAAGGAAATTTCTTGATACCCATATTTTGAAGATAAGCAAATGCAGGTTCTGTCAAATCAGCATAAGAAAGAGAAGGCATATTTTTAGAATGATCAAGTGTCTGAAGCAGCCCAGCAGAAAGGTCTTCCTTCCCATCAGGAGCCCTGTTTAGTGTTTACACAAGATACATGCAATGTGTGAACTTTTATGACACCTACCTCCTAGAAAAGCACTACAGTAAATTTCTGGATGAGAAATTACTTACTGAAGAGATAAGCCAAATTGTTTTAAAATTTCTCCAAATATCCAAAAAGTTTTTCCATCCTTTAGAATAATTTATTCCTAAATTTTATTCCAACAAATAAGCTAACACTGCTCTCCGAATCATTTTCTAATTAAACTTTGAAGACGAGACAAGGATCATAACAGAAACAAAGAACAAGAAATATTACTAAAAATTAATCAGTCTTAACAGAGATATTCTTACCAAATGCCATCTGGGACACATCCAGATCGGAAATAGAATACTGAGAGGTAAGAGAAAGGCCTGAACTGCACCAGAGTACTTCCTAACTCCTACTGTACACTCGACACACAGACTTCCAGGGAAAGTCCTGGGGTTCCGCTAGATGTTTTAATGGTCTCTCTTTTCCTGTTTCAAAAATTCTCCCCAAGAACAAGCAACAGAAACCCCTAGCTTCCAAAAAGTAACAAGCTGTCAGCAATGAAGCAAACAGAAACCCTTTCACTGGCACATCTGAGATGCCCACGGAGTCTGCGGACCCCCCGTATTCTGGCAAGCCTGACTGGAATACTGGTAAAATGTACACCTCATTCATCCCTCGGCAATTAACCTCCCCATCAGCAACGTGTTGGTTTTATTCCCAACACACATAGGCAAAAAACTTCAATCAACTCTTCCTAATATTTAAGATAATTTCATTAATCACCACGTAAGTTCACCACTTTACTTGGCAACCACAACTCATTCAAACGCCTGCAGACCAACTTAGGCTTAGATGAGCAGATCTCTTAGGTGGTGCTTAAAATCGTGTTACTACCACCGTGATCATGAACTAAATGAAATGTCCTGACAATGTAGGAAGAGCCTCAAATCTCAGGCTGTTTTAAGTGCCACTAGGAAAAGAAATCTCCCATTGGACGCGCCCTCACTCCCCGCCCCCCCCCCTGCCCCGCCACTCCCGCCGAGGCGTCCTAAAAGCATTATGTCATCCACTGCCCCCACATCTCTCCAGCTCCAAACCCCGCCTCCTCTCGAAGTGTCCCGCGCCCCCAGCCCTCTTCCCTCTCAGACTAGAAGAGGGAAGTGGCACTGAGCAAATCTCGGCTCCTCCAAGTTCTCTTCACAACGCAGTTAAAAGAACCCCCGCCCTGGTTTCTCGCAAATAAAAAGAAACAAGTTCTCGCCCCAACTCTTCGCATCCTGCGAAGGGCGAGAGGGCTGAGGCCGTGACTCCCCTCGGTGAATTCAGGACAGGCCCCAACAAGGCTCTGCCTCCCCTCGCGAGAGGACAAGGGAAGACCCAAGTGAGGGAGCGGGGCTGAAGTGGGGGAAGGCCTCGCCCCAGGAGGGGGCGGGTGTCCCTCATGGGCTCTGGGTTGCTGGGTCACTCTGTCTCTGCGGGGCCGGGGGTTCGTGTCGCCGGCCCGCAGGCTGCAGGGTTACCGCCATCCCCGCCGTAGCCTGGGACCCGCCGGGACAGGGAGCTGCAGC
8 changes: 8 additions & 0 deletions tests/cram/demuxed.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$ IN=$TESTDIR/data/demultiplex.bc1009--bc1009.consensusreadset.xml
$ REF=$TESTDIR/data/demultiplex.bc1009--bc1009.ref.fasta
$ SAMTOOLS_VERSION=$(samtools --version | head -n 1 | cut -d '.' -f 2)
$ if [ $SAMTOOLS_VERSION -ge 10 ]; then SAMTOOLS_NOPG='--no-PG'; fi

$ $__PBTEST_PBMM2_EXE align $IN $REF "${CRAMTMP}"/demultiplex.bc1009--bc1009.bam --log-level FATAL
$ samtools view ${SAMTOOLS_NOPG} "${CRAMTMP}"/demultiplex.bc1009--bc1009.bam | wc -l | tr -d ' '
1
1 change: 1 addition & 0 deletions tests/cram/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pbmm2_cram_test_data = files([
'baminput.t',
'biosampleConsensus.t',
'biosampleSubreads.t',
'demuxed.t',
'empty.t',
'fastxinput.t',
'idempotence.t',
Expand Down

0 comments on commit ce25807

Please sign in to comment.