include the sequence coordinates when copying sequence
authorDiane Trout <diane@caltech.edu>
Tue, 13 Jun 2006 23:31:38 +0000 (23:31 +0000)
committerDiane Trout <diane@caltech.edu>
Tue, 13 Jun 2006 23:31:38 +0000 (23:31 +0000)
alg/glseqbrowser.cpp

index 0c2c619408a352b4956851056e95e31702f0b74e..c26f0d9ed7fb3fbff9fb5c8b6c1dc58de2015195 100644 (file)
@@ -432,7 +432,9 @@ void GlSeqBrowser::copySelectedTracksAsFasta(std::string& copy_buffer)
     static string formatter(const Sequence& seq, int left, int right)
     {
       stringstream s;
-      s << ">" << seq.get_header() << std::endl
+      s << ">" << seq.get_header() 
+        << "|" << "subregion=" << left << "-" << right+1
+        << std::endl
         << seq.subseq(left, right-left+1) << std::endl;
       return s.str();
     }