Skip to content
Snippets Groups Projects
Commit 5c7e600e authored by Studer Gabriel's avatar Studer Gabriel
Browse files

WrappedTMAlign bugfix: RNA needs custom secondary structure assignment

parent b4d4648a
No related branches found
No related tags found
No related merge requests found
...@@ -72,8 +72,13 @@ TMAlignResult WrappedTMAlign(const geom::Vec3List& pos_one, ...@@ -72,8 +72,13 @@ TMAlignResult WrappedTMAlign(const geom::Vec3List& pos_one,
seqy[i] = seq2[i]; seqy[i] = seq2[i];
} }
make_sec(xa, xlen, secx); if(rna) {
make_sec(ya, ylen, secy); make_sec(seqx, xa, xlen, secx, " C3'");
make_sec(seqy, ya, ylen, secy, " C3'");
} else {
make_sec(xa, xlen, secx);
make_sec(ya, ylen, secy);
}
// these variables are chosen such that running TMalign_main is the same as // these variables are chosen such that running TMalign_main is the same as
// you would call the executable without any additional parameters // you would call the executable without any additional parameters
...@@ -154,7 +159,7 @@ void ExtractChainInfo(const ost::mol::ChainView& chain, geom::Vec3List& pos, ...@@ -154,7 +159,7 @@ void ExtractChainInfo(const ost::mol::ChainView& chain, geom::Vec3List& pos,
if(rna_mode) { if(rna_mode) {
std::stringstream ss; std::stringstream ss;
ss << "Error in WrappedTMAlign: Chains cannot have peptide and RNA "; ss << "Error in WrappedTMAlign: Chains cannot have peptide and RNA ";
ss << "residues. Problematic chain: "<<chain.GetName(); ss << "residues in same chain. Problematic chain: "<<chain.GetName();
throw ost::Error(ss.str()); throw ost::Error(ss.str());
} }
olcs.push_back(olc); olcs.push_back(olc);
...@@ -168,7 +173,7 @@ void ExtractChainInfo(const ost::mol::ChainView& chain, geom::Vec3List& pos, ...@@ -168,7 +173,7 @@ void ExtractChainInfo(const ost::mol::ChainView& chain, geom::Vec3List& pos,
if(rna_mode==false && !pos.empty()) { if(rna_mode==false && !pos.empty()) {
std::stringstream ss; std::stringstream ss;
ss << "Error in WrappedTMAlign: Chains cannot have peptide and RNA "; ss << "Error in WrappedTMAlign: Chains cannot have peptide and RNA ";
ss << "residues. Problematic chain: "<<chain.GetName(); ss << "residues in same chain. Problematic chain: "<<chain.GetName();
throw ost::Error(ss.str()); throw ost::Error(ss.str());
} }
rna_mode = true; rna_mode = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment