Hello,

I am would like to use the logic outlined in the genome browser source code
for twoBit.h in another tool I am working on. Is it at all possible to use
the components of the genome browser in a simple/meaningful way?

In detail I would like to do something like this (extract the characters
between position 2000 and 3000 of chromosome 1 in a 2bit file):

#include <iostream>
#include <twoBit.h>

using namespace std;
using namespace genome_browser; //I am not sure if this at all exists or
would even make sense in this case

int main (int argc, char *argv[])
{
string bit_file = argv[1];

cout << twoBitReadSeqFrag(bit_file, 1, 2000, 3000); << endl;
}

Thank you so much for your help.

Jens
_______________________________________________
Genome maillist  -  [email protected]
https://lists.soe.ucsc.edu/mailman/listinfo/genome

Reply via email to