polish: convert fasta

This commit is contained in:
kuoi 2024-09-12 15:07:23 +10:00
parent 2968698cda
commit 7729c2e6ff

View file

@ -298,7 +298,7 @@ void processCombFasta(string[] ARG_G, string[] ARG_L, string DirConsensus) {
writeln("ConvertFasta::Start");
// read first
foreach (file; ARG_L) {
foreach (file; parallel(ARG_L,1)) {
string inputFile = DirConTaxa ~ "/" ~ file ~ ".fasta";
if (!exists(inputFile)) {
writeln("File not found: ", inputFile);
@ -326,7 +326,7 @@ void processCombFasta(string[] ARG_G, string[] ARG_L, string DirConsensus) {
}
}
// write different files
foreach (gene; ARG_G) {
foreach (gene; parallel(ARG_G,1)) {
string outputFile = DirConGene ~ "/" ~ gene ~ ".fasta";
File output = File(outputFile, "w");
if (gene in geneSequences) {