Step 2 Error Intron Clustering For LeafCutter
1
0
Entering edit mode
9 months ago
Y • 0

My script (the path to juncfiles_list is already defined:

# Presets

## Maximum intron length
max_intron_length_predefined=50

## Maximum number of reads to process
max_reads_predefined=500000

# Path to clustering/leafcutter_cluster_regtools.py in the Leafcutter cloned directory:
leafcutter_script_path="path/to/leafcutter_cluster_regtools.py"

# Directory containing the junction files list
juncfiles_directory="$(dirname "${juncfiles_list}")"

# Output directory name (parent of juncfiles_dir)
output_dir="$(dirname "${juncfiles_directory}")/Step_2_Intron_Clustering"

# Create the output directory if it doesn't exist
mkdir -p "${output_dir}"

# _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

# Run leafcutter_cluster_regtools.py
python "${leafcutter_script_path}" \
    -j "${juncfiles_list}" \
    -m "${max_intron_length_predefined}" \
    -o "${output_dir}" \
    -l "${max_reads_predefined}"

#________________________________________________________________________________________________________________

Gives the following error:

scanning 1/12: /path/to/Control_1.bam.junc
## On and on till 12 of 12
scanning 12/12: /path/to/Experimental_6.bam.junc ...
Traceback (most recent call last):
  File "/path/to/leafcutter_cluster_regtools.py", line 538, in <module>
    main(options, libl)
  File "/path/to/leafcutter_cluster_regtools.py", line 16, in main
    pool_junc_reads(libl, options)
  File "path/to/leafcutter_cluster_regtools.py", line 71, in pool_junc_reads
    fout = open(outFile, 'w')
FileNotFoundError: [Errno 2] No such file or directory: './//path/to/Step_2_Intron_Clustering_pooled'

Why would it give this error? Why add a ./// a triple /?

Bash Leafcutter • 515 views
ADD COMMENT
0
Entering edit mode

Please change path to leafcutter_cluster_regtools.py in your script

leafcutter_script_path="path/to/leafcutter_cluster_regtools.py"
ADD REPLY
0
Entering edit mode

I checked the path is correct to leafcutter_cluster_regtools.py? I double checked every path.

ADD REPLY
0
Entering edit mode
9 months ago
Y • 0

I found the error it seems that -o is not for output but for output prefix. Once it is changed to a prefix such as prefix___ or Part_2___ it works.

ADD COMMENT

Login before adding your answer.

Traffic: 1086 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6