# HG changeset patch # User iuc # Date 1716477602 0 # Node ID cec3e76eaf05ea2555fe0855ab75a0b00165b100 # Parent 00a6721e1f8162a9bf81a51dd45855bc07de8b78 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/snapatac2 commit 1e34deee1e39c0c65e1e29a9d28becc7aaf23a4f diff -r 00a6721e1f81 -r cec3e76eaf05 macros.xml --- a/macros.xml Thu May 16 13:17:14 2024 +0000 +++ b/macros.xml Thu May 23 15:20:02 2024 +0000 @@ -1,6 +1,6 @@ - 2.5.3 - 0 + 2.5.3 + 1 23.0 snapatac2 @@ -12,6 +12,9 @@ hdbscan harmonypy scanorama + macs3 + multiprocess + leidenalg @@ -23,8 +26,8 @@ '$hidden_output' && python '$script_file' >> '$hidden_output' && - touch 'anndata_info.txt' && - cat 'anndata_info.txt' @CMD_prettify_stdout@ + touch 'anndata_info.txt' && + cat 'anndata_info.txt' @CMD_prettify_stdout@ ]]> @@ -56,7 +59,7 @@ - + @@ -66,11 +69,11 @@ - + - + - - + + - + + + + + - - - - - - - - - - + + + + + + - - + + -s + @@ -126,12 +129,12 @@ - - + + - + @@ -147,11 +150,11 @@ - + - + diff -r 00a6721e1f81 -r cec3e76eaf05 preprocessing.xml --- a/preprocessing.xml Thu May 16 13:17:14 2024 +0000 +++ b/preprocessing.xml Thu May 23 15:20:02 2024 +0000 @@ -22,30 +22,30 @@ #if $method.method == 'pp.make_fragment_file' sa.pp.make_fragment_file( - bam_file = '$method.bam_file', - is_paired = $method.is_paired, - #if $method.barcode.extract_type == 'from_tag' - #if $method.barcode.barcode_tag != '' - barcode_tag = '$method.barcode.barcode_tag', - #end if - #elif $method.barcode.extract_type == 'from_read_names' - #if $method.barcode.barcode_regex != '' - barcode_regex = '$method.barcode.barcode_regex', - #end if - #end if - #if $method.umi_tag != '' - umi_tag = '$method.umi_tag', - #end if - #if $method.umi_regex != '' - umi_regex = '$method.umi_regex', - #end if - shift_right = $method.shift_right, - shift_left = $method.shift_left, - min_mapq = $method.min_mapq, - chunk_size = $method.chunk_size, - compression = 'gzip', - output_file = '$fragments_out', - tempdir = "." + bam_file = '$method.bam_file', + is_paired = $method.is_paired, + #if $method.barcode.extract_type == 'from_tag' + #if $method.barcode.barcode_tag != '' + barcode_tag = '$method.barcode.barcode_tag', + #end if + #elif $method.barcode.extract_type == 'from_read_names' + #if $method.barcode.barcode_regex != '' + barcode_regex = '$method.barcode.barcode_regex', + #end if + #end if + #if $method.umi_tag != '' + umi_tag = '$method.umi_tag', + #end if + #if $method.umi_regex != '' + umi_regex = '$method.umi_regex', + #end if + shift_right = $method.shift_right, + shift_left = $method.shift_left, + min_mapq = $method.min_mapq, + chunk_size = $method.chunk_size, + compression = 'gzip', + output_file = '$fragments_out', + tempdir = "." ) #else if $method.method == 'pp.import_data' @@ -54,179 +54,177 @@ chr_sizes = {x[0]:int(x[1]) for x in csv.reader(f, delimiter='\t')} sa.pp.import_data( - fragment_file = '$method.fragment_file', - chrom_sizes = chr_sizes, - min_num_fragments = $method.min_num_fragments, - sorted_by_barcode = $method.sorted_by_barcode, - #if str($method.whitelist) != 'None' - whitelist = '$method.whitelist', - #end if - shift_left = $method.shift_left, - shift_right = $method.shift_right, - #set $chr_mt = ([x.strip() for x in str($method.chrM).split(',')]) - chrM = $chr_mt, - chunk_size = $method.chunk_size, - file = 'anndata.h5ad', - n_jobs = os.getenv("GALAXY_SLOTS", 4) + fragment_file = '$method.fragment_file', + chrom_sizes = chr_sizes, + min_num_fragments = $method.min_num_fragments, + sorted_by_barcode = $method.sorted_by_barcode, + #if str($method.whitelist) != 'None' + whitelist = '$method.whitelist', + #end if + shift_left = $method.shift_left, + shift_right = $method.shift_right, + #set $chr_mt = ([x.strip() for x in str($method.chrM).split(',')]) + chrM = $chr_mt, + chunk_size = $method.chunk_size, + file = 'anndata.h5ad', + n_jobs = int(os.getenv("GALAXY_SLOTS", 4)) ) #else if $method.method == 'pp.add_tile_matrix' sa.pp.add_tile_matrix( - adata, - bin_size = $method.bin_size, - inplace = True, - chunk_size = $method.chunk_size, - #if $method.exclude_chroms != '' - #set $excl_chroms = ([x.strip() for x in str($method.exclude_chroms).split(',')]) - exclude_chroms = $excl_chroms, - #end if - #if $method.min_frag_size - min_frag_size = $method.min_frag_size, - #end if - #if $method.max_frag_size - max_frag_size = $method.max_frag_size, - #end if - ##counting_strategy = '$method.counting_strategy', - count_frag_as_reads = $method.count_frag_as_reads, - n_jobs = os.getenv("GALAXY_SLOTS", 4) + adata, + bin_size = $method.bin_size, + chunk_size = $method.chunk_size, + #if $method.exclude_chroms != '' + #set $excl_chroms = ([x.strip() for x in str($method.exclude_chroms).split(',')]) + exclude_chroms = $excl_chroms, + #end if + #if $method.min_frag_size + min_frag_size = $method.min_frag_size, + #end if + #if $method.max_frag_size + max_frag_size = $method.max_frag_size, + #end if + ##counting_strategy = '$method.counting_strategy', + count_frag_as_reads = $method.count_frag_as_reads, + n_jobs = int(os.getenv("GALAXY_SLOTS", 4)) ) #else if $method.method == 'pp.make_gene_matrix' sa.pp.make_gene_matrix( - adata, - gene_anno = '$method.gene_anno', - inplace = True, - chunk_size = $method.chunk_size, - use_x = $method.use_x, - id_type = '$method.id_type', - transcript_name_key = '$method.transcript_name_key', - transcript_id_key = '$method.transcript_id_key', - gene_name_key = '$method.gene_name_key', - gene_id_key = '$method.gene_id_key', - #if $method.min_frag_size - min_frag_size = $method.min_frag_size, - #end if - #if $method.max_frag_size - max_frag_size = $method.max_frag_size, - #end if - ##counting_strategy = '$method.counting_strategy' - count_frag_as_reads = $method.count_frag_as_reads + adata, + gene_anno = '$method.gene_anno', + chunk_size = $method.chunk_size, + use_x = $method.use_x, + id_type = '$method.id_type', + transcript_name_key = '$method.transcript_name_key', + transcript_id_key = '$method.transcript_id_key', + gene_name_key = '$method.gene_name_key', + gene_id_key = '$method.gene_id_key', + #if $method.min_frag_size + min_frag_size = $method.min_frag_size, + #end if + #if $method.max_frag_size + max_frag_size = $method.max_frag_size, + #end if + ##counting_strategy = '$method.counting_strategy' + count_frag_as_reads = $method.count_frag_as_reads ) #else if $method.method == 'pp.filter_cells' sa.pp.filter_cells( - adata, - min_counts = $method.min_counts, - min_tsse = $method.min_tsse, - #if $method.max_counts - max_counts = $method.max_counts, - #end if - #if $method.max_tsse - max_tsse = $method.max_tsse, - #end if - inplace = True, - n_jobs = os.getenv("GALAXY_SLOTS", 4) + adata, + min_counts = $method.min_counts, + min_tsse = $method.min_tsse, + #if $method.max_counts + max_counts = $method.max_counts, + #end if + #if $method.max_tsse + max_tsse = $method.max_tsse, + #end if + inplace = True, + n_jobs = int(os.getenv("GALAXY_SLOTS", 4)) ) #else if $method.method == 'pp.select_features' sa.pp.select_features( - adata, - n_features = $method.n_features, - filter_lower_quantile = $method.filter_lower_quantile, - filter_upper_quantile = $method.filter_upper_quantile, - #if str($method.whitelist) != 'None' - whitelist = '$method.whitelist', - #end if - #if str($method.blacklist) != 'None' - blacklist = '$method.blacklist', - #end if - max_iter = $method.max_iter, - inplace = True, - n_jobs = os.getenv("GALAXY_SLOTS", 4) + adata, + n_features = $method.n_features, + filter_lower_quantile = $method.filter_lower_quantile, + filter_upper_quantile = $method.filter_upper_quantile, + #if str($method.whitelist) != 'None' + whitelist = '$method.whitelist', + #end if + #if str($method.blacklist) != 'None' + blacklist = '$method.blacklist', + #end if + max_iter = $method.max_iter, + inplace = True, + n_jobs = int(os.getenv("GALAXY_SLOTS", 4)) ) #else if $method.method == 'pp.scrublet' sa.pp.scrublet( - adata, - #if $method.features - features = '$method.features', - #end if - n_comps = $method.n_comps, - sim_doublet_ratio = $method.sim_doublet_ratio, - expected_doublet_rate = $method.expected_doublet_rate, - #if $method.n_neighbors - n_neighbors = $method.n_neighbors, - #end if - use_approx_neighbors = $method.use_approx_neighbors, - random_state = $method.random_state, - inplace = True, - n_jobs = os.getenv("GALAXY_SLOTS", 4) + adata, + #if $method.features + features = '$method.features', + #end if + n_comps = $method.n_comps, + sim_doublet_ratio = $method.sim_doublet_ratio, + expected_doublet_rate = $method.expected_doublet_rate, + #if $method.n_neighbors + n_neighbors = $method.n_neighbors, + #end if + use_approx_neighbors = $method.use_approx_neighbors, + random_state = $method.random_state, + inplace = True, + n_jobs = int(os.getenv("GALAXY_SLOTS", 4)) ) #else if $method.method == 'pp.filter_doublets' sa.pp.filter_doublets( - adata, - #if $method.probability_threshold - probability_threshold = $method.probability_threshold, - #end if - #if $method.score_threshold - score_threshold = $method.score_threshold, - #end if - inplace = True, - n_jobs = os.getenv("GALAXY_SLOTS", 4) + adata, + #if $method.probability_threshold + probability_threshold = $method.probability_threshold, + #end if + #if $method.score_threshold + score_threshold = $method.score_threshold, + #end if + inplace = True, + n_jobs = int(os.getenv("GALAXY_SLOTS", 4)) ) #else if $method.method == 'pp.mnc_correct' sa.pp.mnc_correct( - adata, - batch = '$method.batch', - n_neighbors = $method.n_neighbors, - n_clusters = $method.n_clusters, - n_iter = $method.n_iter, - @CMD_params_data_integration@ - inplace = True, - n_jobs = os.getenv("GALAXY_SLOTS", 4) + adata, + batch = '$method.batch', + n_neighbors = $method.n_neighbors, + n_clusters = $method.n_clusters, + n_iter = $method.n_iter, + @CMD_params_data_integration@ + inplace = True, + n_jobs = int(os.getenv("GALAXY_SLOTS", 4)) ) #else if $method.method == 'pp.harmony' sa.pp.harmony( - adata, - batch = '$method.batch', - @CMD_params_data_integration@ - inplace = True + adata, + batch = '$method.batch', + @CMD_params_data_integration@ + inplace = True ) #else if $method.method == 'pp.scanorama_integrate' sa.pp.scanorama_integrate( - adata, - batch = '$method.batch', - n_neighbors = $method.n_neighbors, - @CMD_params_data_integration@ - inplace = True + adata, + batch = '$method.batch', + n_neighbors = $method.n_neighbors, + @CMD_params_data_integration@ + inplace = True ) #else if $method.method == 'metrics.frag_size_distr' sa.metrics.frag_size_distr( - adata, - max_recorded_size = $method.max_recorded_size, - add_key = '$method.add_key', - inplace = True, - n_jobs = os.getenv("GALAXY_SLOTS", 4) + adata, + max_recorded_size = $method.max_recorded_size, + add_key = '$method.add_key', + inplace = True, + n_jobs = int(os.getenv("GALAXY_SLOTS", 4)) ) #else if $method.method == 'metrics.tsse' sa.metrics.tsse( - adata, - gene_anno = '$method.gene_anno', - inplace = True, - n_jobs = os.getenv("GALAXY_SLOTS", 4) + adata, + gene_anno = '$method.gene_anno', + inplace = True, + n_jobs = int(os.getenv("GALAXY_SLOTS", 4)) ) #end if #if $method.method != 'pp.make_fragment_file' and $method.method != 'pp.import_data' @CMD_anndata_write_outputs@ #end if - ]]> + ]]> @@ -257,7 +255,7 @@ - + @@ -393,7 +391,7 @@ - + @@ -404,14 +402,14 @@ - + - - + + @@ -433,11 +431,250 @@ - + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + +
+ + + + + + + +
+ +
+ + + + + + +
+ + + + + + + + + +
+ +
+ + + + + + + + + +
+ + + + + + + + + + +
+ +
+ + + + + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + +
+ + + + + + + + + + +
+ +
+ + + + + + + + + + +
+ + + + + + + +
+ +
+ + + + + + +
+ + + + + + + + + + +
+ +
+ + + + + + + + + + + +
+ + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + +
+ +
+ + + + + + + + +
+ + + + + + + + +
+ +
+ + + + + + +