Skip to content

Commit

Permalink
Updated GFF3 GTF names
Browse files Browse the repository at this point in the history
  • Loading branch information
kcleal authored Jul 31, 2024
1 parent a930c1c commit 034211f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/hts_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1821,19 +1821,23 @@ namespace HGW {
std::vector<std::string> keyval = Utils::split(item, '=');
if (keyval[0] == "ID") {
rid = keyval[1];
} else if (keyval[0] == "Name") {
parent = keyval[1];
rid = keyval[1];
break;
}
else if (keyval[0] == "Parent") {
parent = keyval[1];
break;
}
} else {
std::vector<std::string> keyval = Utils::split(item, ' ');
if (keyval[0] == "transcript_id") {
rid = keyval[1];
}
else if (keyval[0] == "gene_id") {
if (keyval[0] == "gene_id") {
parent = keyval[1];
rid = keyval[1];
break;
} else if (keyval[0] == "transcript_id") {
rid = keyval[1];
}
}
}
Expand Down

0 comments on commit 034211f

Please sign in to comment.