OLIGO5 Python object composed of oligo. The oligo database file based on the h5 file structure can contain one or more oligo files(tests/test_data/sample.oligo5).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 from ioligo import OLIGO5oligo5_test = OLIGO5("test" ) oligo5_file = "tests/test_data/oligo/test.oligo5" oligo5_test.read(oligo5_file) oligo5_test.name oligo5_test.oligos type (oligo5_test.oligos["G-sample" ])oligo5_test.oligos["G-sample" ][0 ].name olgio5_test.help () oligo5_test.info()
groups
oligos
number
group1
oligo1,oligo2,…oligon
number1,number2,…,numbern
group2
oligo1,oligo2,…oligon
number1,number2,…,numbern
…
…
…
groupn
oligo1,oligo2,…oligon
number1,number2,…,numbern
More usage
Read multiple oligo files at the same time to form an oligo5 file.
1 2 3 4 5 6 oligo1 = "./test.oligo" oligo2 = "./test/test2.oligo" oligo3 = "./test/test3.oligo" from ioligo import OLIGO5oligo5_test = OLIGO5("test" ) oligo5_test.read_foligo(oligo1, oligo2, oligo3)
Read all oligo files in the directory at the same time to form an oligo5 file.
1 2 3 4 oligos_dir = "./test" from ioligo import OLIGO5oligo5_test = OLIGO5("test" ) oligo5_test.read_doligo(oligos_dir)
Perform statistics on data sets in oligo5
1 oligo5_test.info("test_data/oligo/doligo5" )
1 2 3 oligo5.to_oligo5("test_data/oligo/doligo" )
1 oligo5.to_oligo("test_data/oligo/O5toO" )