Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
change to fasta gene and transcript ID extraction
  • Loading branch information
cschlaffner committed Jan 16, 2020
1 parent fd39823 commit b051e68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions PoGo/src/Globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ bool GENOME_MAPPER_GLOBALS::PEPTIDE_MAPPER::CHR_FROM_GENOME_FASTA(false);
std::string GENOME_MAPPER_GLOBALS::ID::GTF_GENE_ID("gene_id \"");
std::string GENOME_MAPPER_GLOBALS::ID::GTF_TRANSCRIPT_ID("transcript_id \"");
std::string GENOME_MAPPER_GLOBALS::ID::GTF_EXON_ID("exon_id \"");
std::string GENOME_MAPPER_GLOBALS::ID::FASTA_GENE_ID("gene:");
std::string GENOME_MAPPER_GLOBALS::ID::FASTA_TRANSCRIPT_ID("transcript:");
std::string GENOME_MAPPER_GLOBALS::ID::FASTA_GENE_ID("gene");
std::string GENOME_MAPPER_GLOBALS::ID::FASTA_TRANSCRIPT_ID("transcript");
bool GENOME_MAPPER_GLOBALS::ID::ID_VERSION_INCLUDE(false);
4 changes: 2 additions & 2 deletions PoGo/src/ProteinEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ std::string ProteinEntry::extract_transcript_id_fasta(std::string str, bool vers
size_t index = str.find(GENOME_MAPPER_GLOBALS::ID::FASTA_TRANSCRIPT_ID);
std::string value("");
if (index != std::string::npos) {
index = index + GENOME_MAPPER_GLOBALS::ID::FASTA_TRANSCRIPT_ID.length();
index = index + GENOME_MAPPER_GLOBALS::ID::FASTA_TRANSCRIPT_ID.length() + 1;
} else {
index = 1;
}
Expand All @@ -48,7 +48,7 @@ std::string ProteinEntry::extract_gene_id_fasta(std::string str, bool versioninc
size_t index = str.find(GENOME_MAPPER_GLOBALS::ID::FASTA_GENE_ID);
std::string value("");
if (index != std::string::npos) {
index = index + GENOME_MAPPER_GLOBALS::ID::FASTA_GENE_ID.length();
index = index + GENOME_MAPPER_GLOBALS::ID::FASTA_GENE_ID.length() + 1;
} else {
index = str.find_first_of("|");
index = index + 1;
Expand Down

0 comments on commit b051e68

Please sign in to comment.