Open hero-outman opened 1 year ago
Hi, this is an issue with sambamba and your system's setup (you'll find lots of hits on Google for the "too many open files" issue). I have created a beta version you can try that introduces the --no-sambamba
flag to fanc auto
and fanc sort-sam
. Could you please try it on your data?
Hi, kaukrise
run fanc-0.9.26b3.tar.gz
with param --no-sambamba
give errors below, but the same commands work fine when running with fanc-0.9.25
commands:
fanc auto \
-g ${hg38_MboI.bed} \
-n fanc.mydata_test_sambamba \
-b 5mb 2mb 1mb \
-t ${threads} \
--max-restriction-site-distance 10000 \
--norm-method KR \
-q ${mapq} \
--no-sambamba \
mydata_R1_sortname.bam mydata_R2_sortname.bam \
myFolder &> HiC_matrix_mydata.out &
errors:
2023-02-02 14:42:24,847 INFO FAN-C version: 0.9.26b3
2023-02-02 14:42:24,848 INFO Getting regions
2023-02-02 14:42:24,849 INFO Output folder: myFolder
2023-02-02 14:42:24,849 INFO Input files: mydata_R2.bam
2023-02-02 14:42:24,849 INFO Input file types: sam
2023-02-02 14:42:24,849 INFO Final basename: fanc.mydata_test_sambamba (you can change this with the -n option!)
2023-02-02 14:42:24,849 INFO Creating output folders...
Traceback (most recent call last):
File "/myhome/mambaforge/envs/FAN-C_test/bin/fanc", line 127, in <module>
Fanc()
File "/myhome/mambaforge/envs/FAN-C_test/bin/fanc", line 93, in __init__
command([sys.argv[0]] + sys.argv[option_ix:], log_level=log_level, verbosity=verbosity)
File "/myhome/mambaforge/envs/FAN-C_test/lib/python3.9/site-packages/fanc/commands/fanc_commands.py", line 123, in auto
return fanc.commands.auto.auto(argv, **kwargs)
File "/myhome/mambaforge/envs/FAN-C_test/lib/python3.9/site-packages/fanc/commands/auto.py", line 1097, in auto
if not file_types[i + 1] == 'sam':
IndexError: list index out of range
And, sambamba Too many open files issue could be solved when explicit param like -m 10G
. can fanc command set this param, or is there a fanc config file that can allocate more memory space for sambamba?
Best and many thanks! Chu
Hello, when I am running
fanc auto
command like:got errors on sambamba Too many open files.:
sambamba failed and temp files were not removed, disk space will run out on those temp files. Also, it is time costing sorted by samtools after already sorted by sambamba.
May I get some hints on:
fanc auto
Many thanks!