Skip to content

Commit

Permalink
Merge pull request #24 from oist/addedmodules
Browse files Browse the repository at this point in the history
Running more modules
  • Loading branch information
charles-plessy authored Apr 26, 2024
2 parents ecb5bb4 + d845557 commit cd517dd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/schema_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"type": "string",
"format": "file-path",
"exists": true,
"pattern": "^\\S+\\.f(ast)?a\\.gz$",
"pattern": "^\\S+\\.f(ast)?a(\\.gz)?$",
"errorMessage": "Fasta file for genomes must be provided, cannot contain spaces and must have extension '.fa.gz' or '.fasta.gz'"
}
},
Expand Down
5 changes: 4 additions & 1 deletion conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ params {
// Input data
// TODO nf-core: Specify the paths to your test data on nf-core/test-datasets
// TODO nf-core: Give any required params for the test so that command line flags are not needed
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/samplesheet/samplesheet_test_illumina_amplicon.csv'
input = 'https://raw.githubusercontent.com/U13bs1125/test-datasets/pairgenomealign/testsamplesheet.csv'

// Target
target = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/sarscov2/genome/genome.fasta'

// Genome references
genome = 'R64-1-1'
Expand Down
16 changes: 15 additions & 1 deletion workflows/pairalign.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
*/

include { ASSEMBLYSCAN } from '../modules/nf-core/assemblyscan/main'
include { LAST_DOTPLOT } from '../modules/nf-core/last/dotplot/main'
include { LAST_LASTAL } from '../modules/nf-core/last/lastal/main'
include { LAST_LASTDB } from '../modules/nf-core/last/lastdb/main'
include { LAST_SPLIT } from '../modules/nf-core/last/split/main'
include { LAST_TRAIN } from '../modules/nf-core/last/train/main'
include { MULTIQC } from '../modules/nf-core/multiqc/main'
include { paramsSummaryMap } from 'plugin/nf-validation'
Expand Down Expand Up @@ -54,14 +56,26 @@ workflow PAIRALIGN {
LAST_LASTDB.out.index.map { row -> row[1] } // Remove metadata map
)

//
// MODULE: lastal
//
LAST_LASTAL (
ch_samplesheet.join(LAST_TRAIN.out.param_file),
LAST_LASTDB.out.index.map { row -> row[1] } // Remove metadata map
)

// MODULE: last_split
//
LAST_SPLIT (
LAST_LASTAL.out.maf
)

// MODULE: last_dotplot
//
LAST_DOTPLOT (
LAST_SPLIT.out.maf,
'png'
)

// Collate and save software versions
//
softwareVersionsToYAML(ch_versions)
Expand Down

0 comments on commit cd517dd

Please sign in to comment.