STAR建索引terminate called after throwing an instance of 'std::bad_alloc

STAR 建立norway spruce的索引的时候,由于Genome实在是太大,总是出现terminate called after throwing an instance of 'std::bad_alloc'这样的错误,谷歌一下之后把命令改成了

STAR --runMode genomeGenerate --runThreadN 20 --genomeFastaFiles Pabies.fa  --genomeDir STAR_index --limitGenomeGenerateRAM 80000000000(运行内存加到80G) --genomeChrBinNbits 11(If you are using a genome with a large > 5,000 number of references (chrosomes/scaffolds), you may need to reduce the --{genomeChrBinNbits to reduce RAM consumption. The following scaling is recommended: --genomeChrBinNbits} = min(18, log2(GenomeLength/NumberOfReferences)). For example, for 3~gigaBase genome with 100,000 chromosomes/scaffolds, this is equal to 15),所以挪威云杉12G的基因组需要log2(120,000,000,000/10,253,694)=11

猜你喜欢

转载自my.oschina.net/u/3722845/blog/1563396