Skip to content

Commit

Permalink
Merge branch 'dev' into nf-test-conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jfy133 committed Oct 4, 2024
2 parents 6362fa3 + f4a7d40 commit 61086b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/collect_genotypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def validate_eigenstrat(genof, snpf, indf):

VERSION = "1.0.0"

parser = argparse.ArgumentParser(usage="%(prog)s (-i <Input file prefix>) (-c <input ind file> | -R | -E) [-L <SAMPLE LIST> | -S Ind [-S Ind2]] [-o <OUTPUT FILE PREFIX>]" , description="A tool to check two different EingenStrat databses for shared individuals, and extract or remove individuals from an EigenStrat database.")
parser = argparse.ArgumentParser(usage="%(prog)s [-v] (-g1 <GENO FILE 1 NAME>) (-s1 <SNP FILE 1 NAME>) (-i1 <IND FILE 1 NAME>) (-g2 <GENO FILE 2 NAME>) (-s2 <SNP FILE 2 NAME>) (-i2 <IND FILE 2 NAME>) (-o <OUTPUT FILE PREFIX>)" , description="A tool to put together two EIGENSTRAT datasets of genotyped on the same SNP set into a single dataset.")
parser._optionals.title = "Available options"
parser.add_argument("-g1", "--genoFn1", type = str, metavar = "<GENO FILE 1 NAME>", required = True, help = "The path to the input geno file of the first dataset.")
parser.add_argument("-s1", "--snpFn1", type = str, metavar = "<SNP FILE 1 NAME>", required = True, help = "The path to the input snp file of the first dataset.")
Expand Down
8 changes: 4 additions & 4 deletions subworkflows/local/map.nf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ workflow MAP {

if ( params.mapping_tool == 'bwaaln' ) {
ch_index_for_mapping = index.map{ meta, index, fasta -> [ meta, index ] }
ch_reads_for_mapping = reads
ch_reads_for_mapping = ch_input_for_mapping.reads

FASTQ_ALIGN_BWAALN ( ch_reads_for_mapping, ch_index_for_mapping )
ch_versions = ch_versions.mix ( FASTQ_ALIGN_BWAALN.out.versions.first() )
Expand All @@ -81,7 +81,7 @@ workflow MAP {
ch_mapped_lane_bai = params.fasta_largeref ? FASTQ_ALIGN_BWAALN.out.csi : FASTQ_ALIGN_BWAALN.out.bai

} else if ( params.mapping_tool == 'bwamem' ) {
ch_input_for_mapping = reads
ch_input_for_mapping = ch_input_for_mapping.reads
.combine( index )
.multiMap {
meta, reads, meta2, index, fasta ->
Expand All @@ -100,7 +100,7 @@ workflow MAP {
ch_mapped_lane_bai = params.fasta_largeref ? SAMTOOLS_INDEX_MEM.out.csi : SAMTOOLS_INDEX_MEM.out.bai

} else if ( params.mapping_tool == 'bowtie2' ) {
ch_input_for_mapping = reads
ch_input_for_mapping = ch_input_for_mapping.reads
.combine( index.map{ meta, index, fasta -> [ meta, index ] } )
.multiMap {
meta, reads, meta2, index ->
Expand All @@ -124,7 +124,7 @@ workflow MAP {
[ meta, elongated_index ]
}

CIRCULARMAPPER( index, ch_elongated_reference_for_mapping, elongated_chr_list, reads, params.fasta_circularmapper_elongationfactor )
CIRCULARMAPPER( index, ch_elongated_reference_for_mapping, elongated_chr_list, ch_input_for_mapping.reads, params.fasta_circularmapper_elongationfactor )
ch_versions = ch_versions.mix ( CIRCULARMAPPER.out.versions )
ch_mapped_lane_bam = CIRCULARMAPPER.out.bam
ch_mapped_lane_bai = CIRCULARMAPPER.out.bai // [ [ meta ], bai/csi ]
Expand Down

0 comments on commit 61086b5

Please sign in to comment.