Closed luhan125 closed 4 years ago
Hello,
I have solved the previous problem, sorry about this. But now, I still have one problem, I don't know how to do. When I run: python3 make_virtual_genomes.py -y config.yaml, the err is: Segmentation fault (core dumped)
Could you give me some advice? Thank you very much!
Best,
Lu Han
Hi,
Thank you for using CircCode, I have never met this problem before, now I'm trying to solve this problem. Could you please show more information about your 'config.yaml' file?
Peisen Sun
Hello,
Thank you for your reply. This is the content of my 'config.yaml' file:
genome_name: virGenome
#################
#################
genome_fasta: /xtdisk/guocx_group/wangql/luhan/testis/CircCode/CircCode/example/genome_fasta
genome_gtf: /xtdisk/guocx_group/wangql/luhan/testis/CircCode/CircCode/example/genome.gtf
raw_reads:
ribosome_fasta: /asnas/guocx_group/yaofw/reference/mm9/mm10/rRNA/rRNA.mm10.rfam.ensemble.fa
trimmomatic_jar: /xtdisk/guocx_group/wangql/luhan/testis/CircCode/CircCode/requiredSoft/trimmomatic-0.38.jar
circrnas: /xtdisk/guocx_group/wangql/luhan/testis/CircCode/CircCode/example/circrnas
riboseq_adapters: /xtdisk/guocx_group/wangql/luhan/testis/CircCode/CircCode/example/riboseq-adapters.fa
coding_seq: /xtdisk/guocx_group/wangql/luhan/testis/CircCode/CircCode/example/coding_seq.fa
non_coding_seq: /xtdisk/guocx_group/wangql/luhan/testis/CircCode/CircCode/example/non_coding_seq.fa
#####################
#####################
result_file_location: /xtdisk/guocx_group/wangql/luhan/testis/CircCode/result_file_1
tmp_file_location: /xtdisk/guocx_group/wangql/luhan/testis/CircCode/tmp_file_1
#################
#################
reads_type: single
ribotype: sra
coverage_counts: 10
thread: 6
merge: F
best,
Lu Han
In this line: The path of genome file genome_fasta: /xtdisk/guocx_group/wangql/luhan/testis/CircCode/CircCode/example/genome_fasta I noted that your genome_fasta file is genome_fasta, make sure this file is in .fasta format. Besides, could you please tell me the RAM of your computer?
All the files I used are from your example. I am sure this file is in .fasta format, and I also try to change the name of this file to genome.fa, but the err is the same: Segmentation fault
I used sever to do this. And the RAM I applyed was 90gb. I show it here:
Hi Lu, After testing, all the files in the example file have no problems, so this error is not caused by the error in the input file. I'm trying to reproduce this error and I will contact you in 2 days.
OK, thank you very much!
you have to increase the stack that your operating system allocates for the python process.
The way to do it is operating system dependant. In Linux, you can check with the command ulimit -s your current value and you can increase it with ulimit -s <new_value>
Try doubling the previous value and continue doubling if it does not work, until you find one that does or run out of memory.
please try this command in terminal:
ulimit -S -s unlimited
My recent annoyance with Python 3.7 on Windows Subsystem for Linux is that: on two machines with the same Pandas library, one gives me segmentation fault and the other reports warning. It was not clear which one was newer, but "re-installing" pandas solves the problem.
Command that I ran on the buggy machine.
conda install pandas
More details: I was running identical scripts (synced through Git), and both are Windows 10 machine with WSL + Anaconda. Here go the screenshots to make the case. Also, on the machine where command-line python will complain about Segmentation fault (core dumped), Jupyter lab simply restarts the kernel every single time. Worse still, no warning was given at all.
https://stackoverflow.com/questions/10035541/what-causes-a-python-segmentation-fault
Hello,
I'm using CircCode, such a powerful tool, but I have problem, every files I used here are from your example. When I run: python3 make_virtual_genomes.py -y config.yaml, the err is: No. 1 length: 281 Traceback (most recent call last): File "make_virtual_genomes.py", line 218, in
main()
File "make_virtual_genomes.py", line 210, in main
info.make_genome()
File "make_virtual_genomes.py", line 95, in make_genome
self.genome += (circrna.seq 2 + polyN)
TypeError: unsupported operand type(s) for : 'Seq' and 'int'
Could you give me some advice? Thank you very much!
Best,
Lu Han