Skip to content

Commit

Permalink
Merge pull request #171 from tleonardi/release_1.0.2
Browse files Browse the repository at this point in the history
Release 1.0.2
  • Loading branch information
tleonardi committed Dec 18, 2020
2 parents 3ca757e + 86c71f4 commit 30cebf6
Show file tree
Hide file tree
Showing 24 changed files with 2,650 additions and 557 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ site/

# Results and data folder
data
docs/demo/nanopolish_eventalign
docs/demo/eventalign_files
docs/demo/references
docs/demo/results
tmp
dev
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ python:
- 3.6
- 3.7
- 3.8
- 3.9

branches:
only:
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 1.0.2

### Added
- Exposed option to enable/disable anova test
- Running nanocompore via CLI now disables anova by default
- SampComp now downsamples to 5000 by default

### Fixed
- Subsampling in whitelist is deterministic (fix for #103)
- Reworked multiprocessing framework for SampComp (fix for zombie threads, not tested with large datasets)


## v1.0.1

### Fixed
Expand Down
7 changes: 6 additions & 1 deletion docs/alternative.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
Here is a non-exhaustive list of alternative/complementary packages that could also be used to analyse RNA methylation from nanopore sequencing datasets:

* [Tombo](https://github.com/nanoporetech/tombo)
* ...
* [epinano](https://github.com/enovoa/EpiNano)
* [xpore](https://github.com/GoekeLab/xpore)
* [Mines](https://github.com/YeoLab/MINES)
* [Eligos](https://gitlab.com/piroonj/eligos2)
* [differr_nanopore_DRS](https://github.com/bartongroup/differr_nanopore_DRS)

17 changes: 12 additions & 5 deletions docs/data_preparation.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,22 @@ samtools index {aligned_reads_bam}

### Read indexing and resquiggling

Nanopolish is required to realign raw signal to the expected reference sequence. Reads have to be indexed first with nanopolish index, realigned with nanopolish eventalign and finally the data has to be collapsed per kmer and indexed by NanopolishComp Eventalign_collapse.
Nanopolish is required to realign raw signal to the expected reference sequence. For each samples, reads have to be preprocessed with [nanopolish 0.10.1+](https://github.com/jts/nanopolish). First index the reads with nanopolish index and then resquiggle them with nanopolish eventalign

Example with [Nanopolish v0.10.1](https://github.com/jts/nanopolish) and [NanopolishComp v0.4.3](https://github.com/a-slide/NanopolishComp)
**Please be carefull to use the following options with nanopolish:** ` --print-read-names --scale-events --samples`

Example with [Nanopolish v0.10.1](https://github.com/jts/nanopolish)

```bash
nanopolish index -s {sequencing_summary.txt} -d {raw_fast5_dir} {basecalled_fastq}

nanopolish eventalign --reads {basecalled_fastq} --bam {aligned_reads_bam} --genome {transcriptome_fasta} --samples --print-read-names --scale-events --samples > {eventalign_reads_tsv}

NanopolishComp Eventalign_collapse -i {eventalign_reads_tsv} -o {eventalign_collapsed_reads_tsv}
nanopolish eventalign --reads {basecalled_fastq} --bam {aligned_reads_bam} --genome {transcriptome_fasta} --print-read-names --scale-events --samples > {eventalign_reads_tsv}
```

Finally the data has to be collapsed per kmer and indexed using the `Eventalign_collapse` command provided in Nanocompore.

```bash
nanocompore Eventalign_collapse -t 6 -i {eventalign_reads_tsv} -o {eventalign_collapsed_reads_tsv}
```

Once you have done that with all your samples, you are ready to run `SampComp`, the sample comparison command of Nanocompore
Loading

0 comments on commit 30cebf6

Please sign in to comment.