Skip to content

Commit

Permalink
solve p1
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangsizhu1201 authored Jan 11, 2025
1 parent 5946472 commit dab5978
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 13 deletions.
3 changes: 1 addition & 2 deletions bin/prepare_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def main(guide_inference, mudata_path):

# adding 'pairs_to_test' to mudata uns
## remove the gene_id that is not included in the mudata
mudata.mod['gene'].var['symbol_new'] = mudata.mod['gene'].var['symbol'].str.split('.').str[0]
mudata.mod['gene'].var.index = mudata.mod['gene'].var['symbol_new']

gene_var = mudata.mod['gene'].var.index if mudata.mod['gene'].var.index is not None else []
guide_var = mudata.mod['guide'].var['guide_id'] if mudata.mod['guide'] is not None else []

Expand Down
10 changes: 5 additions & 5 deletions process_mudata_pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@ workflow process_mudata_pipeline {

if (params.inference_option == 'predefined_pairs') {
PrepareInference = prepare_user_guide_inference(
file(params.input),
Guide_Assignment.guide_assignment_mudata_output,
file(params.user_inference)
)}
else if (params.inference_option == 'by_distance') {
PrepareInference = prepare_guide_inference(
file(params.input),
file(params.gtf),
Guide_Assignment.guide_assignment_mudata_output,
GTF_Reference.gencode_gtf,
params.distance_from_center
)}
else if (params.inference_option == 'all_by_all') {
PrepareInference = prepare_all_guide_inference(
file(params.input),
file(params.gtf)
Guide_Assignment.guide_assignment_mudata_output,
GTF_Reference.gencode_gtf
)}

if (params.inference_method == "sceptre"){
Expand Down
10 changes: 5 additions & 5 deletions process_mudata_pipeline_HASHING.nf
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@ workflow process_mudata_pipeline_HASHING {

if (params.inference_option == 'predefined_pairs') {
PrepareInference = prepare_user_guide_inference(
file(params.input),
Guide_Assignment.guide_assignment_mudata_output,
file(params.user_inference)
)}
else if (params.inference_option == 'by_distance') {
PrepareInference = prepare_guide_inference(
file(params.input),
file(params.gtf),
Guide_Assignment.guide_assignment_mudata_output,
GTF_Reference.gencode_gtf,
params.distance_from_center
)}
else if (params.inference_option == 'all_by_all') {
PrepareInference = prepare_all_guide_inference(
file(params.input),
file(params.gtf)
Guide_Assignment.guide_assignment_mudata_output,
GTF_Reference.gencode_gtf
)}

if (params.inference_method == "sceptre"){
Expand Down
1 change: 0 additions & 1 deletion processes/downloadGenome.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
process downloadGenome {
input:
val genome_path
val hg38_path

output:
path "genome.fa.gz" , emit: genome
Expand Down
Binary file added svg/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions svg/barplot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions svg/curve.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions svg/knee_plot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions svg/line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions svg/network.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions svg/scatter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit dab5978

Please sign in to comment.