Skip to content

Commit

Permalink
Merge pull request #24 from U-BDS/dev
Browse files Browse the repository at this point in the history
Documentation and linting
  • Loading branch information
atrull314 authored Jul 12, 2024
2 parents b33dcdc + 1b9d295 commit d8af2ab
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 3 deletions.
10 changes: 10 additions & 0 deletions bin/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""
This is modified script from the `support-5prim-kit` branch of the BLAZE repo, link below:
https://github.com/shimlab/BLAZE/tree/support-5prim-kit
The only modifications that have been made are formatting changes in order to meet the
nf-core linting requirements. The script has been copied into the pipeline temporarily
in order to support 5-prime data, and will be removed once this feature has been
incorporated into an official BLAZE release.
"""

# This file stores the parameter used in this repo

import os
Expand Down
10 changes: 10 additions & 0 deletions bin/find_reads.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""
This is modified script from the `support-5prim-kit` branch of the BLAZE repo, link below:
https://github.com/shimlab/BLAZE/tree/support-5prim-kit
The only modifications that have been made are formatting changes in order to meet the
nf-core linting requirements. The script has been copied into the pipeline temporarily
in order to support 5-prime data, and will be removed once this feature has been
incorporated into an official BLAZE release.
"""

# find specific reads with given read id and output to a new fastq file


Expand Down
10 changes: 10 additions & 0 deletions bin/helper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""
This is modified script from the `support-5prim-kit` branch of the BLAZE repo, link below:
https://github.com/shimlab/BLAZE/tree/support-5prim-kit
The only modifications that have been made are formatting changes in order to meet the
nf-core linting requirements. The script has been copied into the pipeline temporarily
in order to support 5-prime data, and will be removed once this feature has been
incorporated into an official BLAZE release.
"""

import numpy as np
import pandas as pd
import concurrent.futures
Expand Down
8 changes: 8 additions & 0 deletions bin/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/usr/bin/env python3

"""
This is modified script from the `support-5prim-kit` branch of the BLAZE repo, link below:
https://github.com/shimlab/BLAZE/tree/support-5prim-kit
The only modifications that have been made are formatting changes in order to meet the
nf-core linting requirements. The script has been copied into the pipeline temporarily
in order to support 5-prime data, and will be removed once this feature has been
incorporated into an official BLAZE release.
Get raw BC (i.e. putative barcode) from fastq file
Output:
Expand Down
11 changes: 10 additions & 1 deletion bin/polyT_adaptor_finder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
"""Searching for adaptor polyT or poly A in a Nanopore read.
"""
This is modified script from the `support-5prim-kit` branch of the BLAZE repo, link below:
https://github.com/shimlab/BLAZE/tree/support-5prim-kit
The only modifications that have been made are formatting changes in order to meet the
nf-core linting requirements. The script has been copied into the pipeline temporarily
in order to support 5-prime data, and will be removed once this feature has been
incorporated into an official BLAZE release.
Searching for adaptor polyT or poly A in a Nanopore read.
"""
import numpy as np
from fast_edit_distance import sub_edit_distance
Expand Down
10 changes: 10 additions & 0 deletions bin/polyT_trimmer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""
This is modified script from the `support-5prim-kit` branch of the BLAZE repo, link below:
https://github.com/shimlab/BLAZE/tree/support-5prim-kit
The only modifications that have been made are formatting changes in order to meet the
nf-core linting requirements. The script has been copied into the pipeline temporarily
in order to support 5-prime data, and will be removed once this feature has been
incorporated into an official BLAZE release.
"""

from collections import namedtuple
import argparse
from tqdm import tqdm
Expand Down
10 changes: 10 additions & 0 deletions bin/read_assignment.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""
This is modified script from the `support-5prim-kit` branch of the BLAZE repo, link below:
https://github.com/shimlab/BLAZE/tree/support-5prim-kit
The only modifications that have been made are formatting changes in order to meet the
nf-core linting requirements. The script has been copied into the pipeline temporarily
in order to support 5-prime data, and will be removed once this feature has been
incorporated into an official BLAZE release.
"""

from fast_edit_distance import edit_distance, sub_edit_distance
import multiprocessing as mp
import tempfile
Expand Down
11 changes: 11 additions & 0 deletions bin/update_whitelist.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
"""
This is modified script from the `support-5prim-kit` branch of the BLAZE repo, link below:
https://github.com/shimlab/BLAZE/tree/support-5prim-kit
The only modifications that have been made are formatting changes in order to meet the
nf-core linting requirements. The script has been copied into the pipeline temporarily
in order to support 5-prime data, and will be removed once this feature has been
incorporated into an official BLAZE release.
"""

# Generate new whitelist from baw_bc table

import argparse
Expand Down
2 changes: 1 addition & 1 deletion conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ if (!params.skip_qc){
]
}
}

process {
withName:'.*:BAM_SORT_STATS_SAMTOOLS_DEDUP:BAM_STATS_SAMTOOLS:.*' {
ext.prefix = { "${meta.id}.dedup.sorted" }
Expand Down
4 changes: 3 additions & 1 deletion modules/local/blaze.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ process BLAZE {

conda "atrull314::fast_edit_distance=1.2.1 conda-forge::matplotlib=3.8.4 conda-forge::biopython=1.83 conda-forge::pandas=2.2.2 conda-forge::numpy=2.0.0rc2 conda-forge::tqdm=4.66.4"

container "docker://agtrull314/blaze_test:2.2.0"
container "${ workflow.containerEngine == 'singularity' ?
'docker://agtrull314/blaze:2.2.0' :
'docker.io/agtrull314/blaze:2.2.0'}"

input:
tuple val(meta), path(reads)
Expand Down

0 comments on commit d8af2ab

Please sign in to comment.