Skip to content

Commit

Permalink
adding MOP4
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacozzuto committed Nov 29, 2024
1 parent a7968a7 commit 0592f07
Show file tree
Hide file tree
Showing 147 changed files with 606 additions and 5,520 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mop3-CI
name: mop4-CI
# When this workflow is triggered
on:
on:
push:
paths-ignore:
- 'docs/**'
Expand All @@ -10,7 +10,7 @@ on:

jobs:
build:
name: mop3 ci
name: mop4 ci
# This job runs on Linux
runs-on: ubuntu-20.04
timeout-minutes: 90
Expand All @@ -24,15 +24,15 @@ jobs:
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true

- name: Environment
run: env | sort

- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ github.token }}
repository: biocorecrg/master_of_pores
repository: biocorecrg/MOP4
fetch-depth: 1
submodules: true

Expand All @@ -42,17 +42,16 @@ jobs:
java-version: ${{ matrix.java_version }}
distribution: 'adopt'
architecture: x64
- name: MOP3

- name: MOP4
run: |
curl -fsSL get.nextflow.io | bash
bash INSTALL.sh
cd mop_preprocess
../nextflow run mop_preprocess.nf -params-file params.f5.yaml -with-docker -profile ci
cd ../mop_mod
../nextflow run mop_mod.nf -params-file params.yaml -with-docker -profile ci
cd ../mop_tail
../nextflow run mop_tail.nf -with-docker -params-file params.yaml -profile ci
../nextflow run mop_preprocess.nf -params-file params.yaml -with-docker -profile ci
# cd ../mop_mod
# ../nextflow run mop_mod.nf -params-file params.yaml -with-docker -profile ci
# cd ../mop_tail
# ../nextflow run mop_tail.nf -with-docker -params-file params.yaml -profile ci
env:
NXF_ANSI_LOG: false
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on:
on:
push:
paths:
- 'docs/**'
Expand Down
14 changes: 7 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
singularity
mop_preprocess/bin/multi_to_single_fast5
mop_preprocess/bin/read_fast5_basecaller.py
mop_preprocess/bin/ont*
mop_preprocess/bin/lib*
mop_preprocess/bin/MINIMAP2_LICENSE
mop_preprocess/bin/guppy*
slurm-*
outfolder
cmd*
.nextf*
._*
.DS*
mop_preprocess/dorado_models
*/work
*/.next*
52 changes: 0 additions & 52 deletions INSTALL.sh

This file was deleted.

19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MoP3 - Master of Pores 3
# MoP4 - Master of Pores 4
[![Docker Build Status](https://img.shields.io/docker/automated/biocorecrg/nanopore.svg)](https://cloud.docker.com/u/biocorecrg/repository/docker/biocorecrg/nanopore/builds)
[![mop3-CI](https://github.com/biocorecrg/master_of_pores/actions/workflows/build.yml/badge.svg)](https://github.com/biocorecrg/master_of_pores/actions/workflows/build.yml)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![mop2-CI](https://github.com/biocorecrg/MOP4/actions/workflows/build.yml/badge.svg)](https://github.com/biocorecrg/MOP4/actions/workflows/build.yml)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Nextflow version](https://img.shields.io/badge/Nextflow-21.04.1-brightgreen)](https://www.nextflow.io/)
[![Nextflow DSL2](https://img.shields.io/badge/Nextflow-DSL2-brightgreen)](https://www.nextflow.io/)
[![Singularity version](https://img.shields.io/badge/Singularity-v3.2.1-green.svg)](https://www.sylabs.io/)
Expand All @@ -9,35 +9,34 @@
<br/>



<img align="right" href="https://biocore.crg.eu/" src="https://raw.githubusercontent.com/CRG-CNAG/BioCoreMiscOpen/master/logo/biocore-logo_small.png" />


Master of Pores is a pipeline written in Nextflow DSL2 for the analysis of Nanopore data.
Master of Pores is a pipeline written in Nextflow DSL2 to analyze Nanopore data.
<br/>

It can handle reads from direct RNAseq, cDNAseq, DNAseq etc.

<br/>


![MOP3](https://github.com/biocorecrg/master_of_pores/blob/v3.0/img/goku3.png?raw=true)
![MOP4](https://github.com/biocorecrg/MoP4/blob/master/img/ssj4.png?raw=true)

The name is inspired by the Metallica's [Master Of Puppets](https://www.youtube.com/watch?v=S7blkui3nQc)
The name is inspired by the Metallica's [Master Of Puppets](https://www.youtube.com/watch?v=S7blkui3nQc), the logo and the images are an homage to [Akira Toriyama](https://en.wikipedia.org/wiki/Akira_Toriyama)

## Install
Please install nextflow and singularity or docker before.

Then download the repo:

```
git clone --depth 1 --recurse-submodules https://github.com/biocorecrg/master_of_pores.git
git clone --depth 1 --recurse-submodules https://github.com/biocorecrg/MOP4.git
```

You can use INSTALL.sh to download the version 3.4.5 of guppy or you can replace it with the version you prefer. Please consider that the support of VBZ compression of fast5 started with version 3.4.X.

```
cd master_of_pores; sh INSTALL.sh
cd MOP4; sh INSTALL.sh
```

## Testing
Expand All @@ -56,10 +55,10 @@ git pull --recurse-submodules
```

## Documentation
The documentation is available at [https://biocorecrg.github.io/master_of_pores/](https://biocorecrg.github.io/master_of_pores/)
The documentation is available at [https://biocorecrg.github.io/MOP4/](https://biocorecrg.github.io/MOP4/)

## Contact
Please open an [issue](https://github.com/biocorecrg/master_of_pores/issues) if you encounter any issues/troubles.
Please open an [issue](https://github.com/biocorecrg/MOP2/issues) if you encounter any issues/troubles.
However, please go over the previous issues (including closed issues) before opening a new issue, as your same exact question might have been already answered previously. Thank you!


Expand Down
Binary file removed anno/yeast_rRNA_ref.gtf.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions conf/clean.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
boost {
cleanup = true
}
6 changes: 3 additions & 3 deletions conf/crg.config
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ process {
memory = '80G'
}
withLabel: big_cpus_retry {
errorStrategy = {task.attempt <= 3 ? 'retry' : 'ignore'}
errorStrategy = 'retry'
cpus = 8
memory = {16.GB * task.attempt}
memory = {8.GB * task.attempt}
maxRetries = 3

}
Expand All @@ -41,7 +41,7 @@ process {
memory = '8G'
}
withLabel: big_mem_cpus {
time = '48h'
time = '6h'
cpus = 8
memory = '60G'
}
Expand Down
8 changes: 4 additions & 4 deletions conf/newcrg.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ process {
time = '6h'
container = 'biocorecrg/mopprepr:0.7'
containerOptions = { workflow.containerEngine == "docker" ? '-u $(id -u):$(id -g)': null}
clusterOptions = { task.time <= 3.h ? '--qos=shorter' :
(task.time <= 6.h ? '--qos=short' :
(task.time <= 12.h ? ' --qos=normal' :
(task.time <= 24.h ? '--qos=long' :
clusterOptions = { task.time <= 3.h ? '--qos=shorter' :
(task.time <= 6.h ? '--qos=short' :
(task.time <= 12.h ? ' --qos=normal' :
(task.time <= 24.h ? '--qos=long' :
(task.time <= 48.h ? '--qos=vlong' : '--qos=marathon' )))) }

withLabel: big_mem_time {
Expand Down
Binary file removed data/fast5/mod/batch_0.fast5
Binary file not shown.
Binary file removed data/fast5/wt/batch_0.fast5
Binary file not shown.
Binary file removed data/fast5_dem/test/FAT12104_2836aa20_0.fast5
Binary file not shown.
Binary file removed data/fast5_dem/test/FAT12104_2836aa20_1.fast5
Binary file not shown.
Binary file removed data/fast5_dna_dem/test/FAT12104_2836aa20_0.fast5
Binary file not shown.
Binary file removed data/fast5_dna_dem/test/FAT12104_2836aa20_1.fast5
Binary file not shown.
Binary file removed data/fast5_rna_dem/test/batch_0.fast5
Binary file not shown.
Binary file removed data/fastq/mod.fq.gz
Binary file not shown.
Binary file removed data/fastq/wt.fq.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed deeplexicon/resnet20-final.h5
Binary file not shown.
34 changes: 0 additions & 34 deletions docker/Dockerfile_basecall

This file was deleted.

31 changes: 0 additions & 31 deletions docker/Dockerfile_basecall_cuda11

This file was deleted.

30 changes: 0 additions & 30 deletions docker/Dockerfile_demulti

This file was deleted.

29 changes: 0 additions & 29 deletions docker/Dockerfile_epinano

This file was deleted.

Loading

0 comments on commit 0592f07

Please sign in to comment.