-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ddeb080
commit 7ec7289
Showing
13 changed files
with
145 additions
and
32 deletions.
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,20 @@ | ||
--- | ||
layout: default | ||
parent: FAQ | ||
title: Barcoded Adapter | ||
--- | ||
|
||
## Barcoded Adapter | ||
The most convenient way to barcode a sample is the use of barcoded adapters, as | ||
depicted in the [barcode design overview](barcode-design). One minor | ||
disadvantage is that the ligation might not be as efficient as with standard | ||
SMRTbell adapters, leaving some molecules only with one adapter. As barcoded | ||
adapter designs are inherently symmetric, we implemented ways to recover the | ||
demultiplexed yield from one-sided barcoded molecules with ease. | ||
|
||
As the first step, generate HiFi data with *ccs* v6.3.0 or later. This version | ||
will store [additional tags per | ||
records](https://ccs.how/faq/missing-adapters.html), indicating if the molecule | ||
has missing adapters on either side. The second step is to use the new | ||
`--hifi-preset SYMMETRIC-ADAPTERS` introduced with *lima* v2.5.0, [described | ||
here](/faq/hifi-presets). That's it. |
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,22 @@ | ||
--- | ||
layout: default | ||
parent: FAQ | ||
title: HiFi Presets | ||
--- | ||
|
||
## HiFi presets | ||
With v2.5.0 we introduced the concept of recommended parameter presets called | ||
`--hifi-preset`. All preset use | ||
|
||
--ccs --min-score 80 --min-end-score 50 --min-ref-span 0.75 | ||
|
||
in addition they differ as following | ||
|
||
| Preset | Definition | | ||
| -------------------- | ------------------------------------- | | ||
| `SYMMMETRIC` | `--same` | | ||
| `SYMMETRIC-ADAPTERS` | `--same --ignore-missing-adapters` | | ||
| `ASYMMETRIC` | `--different --min-scoring-regions 2` | | ||
|
||
For barcoded adapter libraries, `SYMMETRIC-ADAPTERS` will increase demultiplexed | ||
yield. More info under [barcoded adapter FAQ](/faq/barcoded-adapter) |
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
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,43 @@ | ||
--- | ||
layout: default | ||
parent: FAQ | ||
title: Undo | ||
--- | ||
|
||
## Undo demultiplexing | ||
With the introduction of *lima* v2.5.0, it is possible to undo all | ||
demultiplexing steps for **HiFi data**. For this, the bioconda package contains a | ||
new `lima-undo` binary. | ||
|
||
Example: | ||
|
||
lima movie.hifi_reads.bam demux.consensusreadset.xml --hifi-preset SYMMETRIC --store-unbarcoded | ||
lima-undo demux.consensusreadset.xml undo.bam | ||
|
||
Let's unroll what's happening. In the first line, we explicitly request to store | ||
the unbarcoded reads. Without this, we would not be able to recover unbarcoded | ||
reads. The `XML` contains all the file paths to the `BAM` files. The second call is | ||
to the new *lima-undo* binary that takes a `XML` or `BAM` file as input and | ||
ouput. | ||
|
||
Optionally, you can also provide multiple input `BAM` files with one output `BAM`: | ||
|
||
lima-undo demux.bam demux.unbarcoded.bam undo.bam | ||
|
||
This works also with split BAM files: | ||
|
||
lima-undo demux.bc1001-bc1001.bam demux.bc1002-bc1002.bam demux.unbarcoded.bam undo.bam | ||
|
||
## How does it work? | ||
*lima* v2.5.0 and later stores everything that got clipped in an internal binary | ||
structure in the `ls` tag. Multiple demultiplexing rounds are supported. Once | ||
*lima-undo* gets called, for each read the individual demultiplexing steps get | ||
reverted until the read is identical to the original HiFi read. | ||
|
||
## How can I check if undo results are correct? | ||
How to check that the result is identical: | ||
|
||
samtools sort --no-PG -t "zm" undo.bam -o sorted.undo.bam | ||
samtools view --no-PG sorted.undo.bam > undo.sam | ||
samtools view --no-PG movie.hifi_reads.bam > original.sam | ||
diff original.sam undo.sam |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
--- | ||
layout: default | ||
parent: Output files | ||
title: Removed | ||
title: Unbarcoded | ||
--- | ||
|
||
## Removed records | ||
Using the option `--dump-removed`, records that did not pass provided thresholds | ||
## Unbarcoded records | ||
Using the option `--store-unbarcoded`, records that did not pass provided thresholds | ||
or are without barcodes, are stored in the file `prefix.removed.bam`. |