frontier.IO package
Submodules
frontier.IO.AQCReader module
frontier.IO.AbstractReader module
-
class frontier.IO.AbstractReader.AbstractReader(filepath, CLASSES, auto_close, header)[source]
Bases: object
Wraps a file handler and provides controlled access to its contents.
-
close()[source]
Close the file handler.
-
get_data()[source]
Return read data.
-
get_id()[source]
Return record ID.
-
process_file()[source]
Calls process_line for each line in input file.
-
process_line(line)[source]
Process a record of the input file.
frontier.IO.BamcheckReader module
-
class frontier.IO.BamcheckReader.BamcheckReader(filepath, CLASSES=None, auto_close=True)[source]
Bases: frontier.IO.AbstractReader.AbstractReader
Wraps a file handler and provides access to bamcheckr’d file contents.
-
get_data()[source]
Return read summary data.
-
get_id()[source]
-
process_line(line)[source]
Process a record of the bamcheckr’d file.
-
class frontier.IO.BamcheckReader.IndelDistribution[source]
Bases: object
Novel object to hold a trio of lengths, inserts and deletes counters.
-
total_deletes()[source]
Return sum of total deletes.
-
total_inserts()[source]
Return sum of total inserts.
-
class frontier.IO.BamcheckReader.SummaryNumbers(*args)[source]
Bases: dict
Wraps a dictionary and provides functionality to search for keys.
-
search(query)[source]
Search the structure for keys matching a given query.
-
frontier.IO.BamcheckReader.tidy_key(key)[source]
Sanitize summary number key.
frontier.IO.NotImplementedReader module
Module contents