Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wxicu committed Nov 6, 2023
1 parent b5f02b2 commit 99589b6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ workflow run_single{
donor_match(summary_all.out)
if (params.generate_anndata == "True" || params.generate_mudata == "True" ){
generate_data(donor_match.out, params.generate_anndata, params.generate_mudata,
params.rna_matrix_filtered, params.hto_matrix_filtered)
params.rna_matrix_filtered, params.hto_matrix_filtered)
}
}
}
else if (params.mode == "donor_match"){
donor_match(params.demultiplexing_result)
if (params.generate_anndata == "True" || params.generate_mudata == "True" ){
generate_data(donor_match.out, params.generate_anndata, params.generate_mudata,
params.rna_matrix_filtered, params.hto_matrix_filtered)
params.rna_matrix_filtered, params.hto_matrix_filtered)
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions modules/gene_demultiplexing.nf
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ process summary{
scsplit_files = "--scsplit ${scsplit_res}"
}
if (generate_anndata == "True"){
if(rna_matrix == "None"){
if(rna_matrix.name == "None"){
error "Error: RNA count matrix is not given."
}
generate_adata = "--generate_anndata --read_rna_mtx $rna_matrix"
}
if (generate_mudata == "True"){
if(rna_matrix == "None"){
if(rna_matrix.name == "None"){
error "Error: RNA count matrix is not given."
}
if(hto_matrix == "None"){
if(hto_matrix.name == "None"){
error "Error: HTO count matrix is not given."
}
generate_mdata = "--generate_mudata --read_rna_mtx $rna_matrix --read_hto_mtx $hto_matrix"
Expand Down
3 changes: 2 additions & 1 deletion modules/hash_demulti/demuxem.nf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ process demuxem{
demuxem.py --rna_matrix_dir rna_data_${params.rna_matrix_demuxem} --hto_matrix_dir hto_data_${params.hto_matrix_demuxem} \
--randomState $random_state --min_signal $min_signal --tol $tol \
--min_num_genes $min_num_genes --min_num_umis $min_num_umis --alpha $alpha --alpha_noise $alpha_noise \
--n_threads $threads $generateGenderPlot --objectOutDemuxem $objectOutDemuxem --outputdir demuxem_${sampleId} --filter_demuxem $filter_demuxem
--n_threads $threads $generateGenderPlot --objectOutDemuxem $objectOutDemuxem --outputdir demuxem_${sampleId} \
--filter_demuxem $filter_demuxem
"""

Expand Down
4 changes: 2 additions & 2 deletions modules/hash_demulti/hashedDrops.nf
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ process hashedDrops{
path "hashedDrops_${sampleId}"

script:
def testAmb = testAmbient != 'False' ? " --testAmbient" : ''
def testAmb = testAmbient != 'False' ? " --testAmbient" : ''
def rou = round != 'False' ? " --round" : ''
def constantAmb = constantAmbient != 'False' ? " --constantAmbient" : ''
def doubletMix = doubletMixture != 'False' ? " --doubletMixture" : ''
def ign = ignore != "None" ? " --ignore ${ignore}" : ''
def ign = ignore != "None" ? " --ignore ${ignore}" : ''
def alp = alpha != "None" ? " --alpha ${alpha}" : ''
def byR = byRank != "None" ? " --by.rank ${byRank}" : ''
def amb = ambient != 'False' ? " --ambient" : ''
Expand Down

0 comments on commit 99589b6

Please sign in to comment.