DOKK / manpages / debian 12 / python3-pychopper / pychopper.1.en
PYCHOPPER(1) package documentation PYCHOPPER(1)

pychopper - package documentation

Module contents

Module contents

Parse command line arguments.

Module contents

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.




Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Integration test.

Integration test.


Module contents

Process alignment hits by removing overlaps

Segment reads based on alignment hits using dynamic programming. The algorithm is based on the rule that each primer alignment hit can be used only once. Hence if a segment is included, the next one has to be excluded.




Bases: tuple

Create new instance of Hit(Ref, RefStart, RefEnd, Query, QueryStart, QueryEnd, Score)

Alias for field number 3

Alias for field number 5

Alias for field number 4

Alias for field number 0

Alias for field number 2

Alias for field number 1

Alias for field number 6


Bases: tuple

Create new instance of Segment(Left, Start, End, Right, Strand, Len)

Alias for field number 2

Alias for field number 0

Alias for field number 5

Alias for field number 3

Alias for field number 1

Alias for field number 4


Bases: tuple

Create new instance of Seq(Id, Name, Seq, Qual, Umi)

Alias for field number 0

Alias for field number 1

Alias for field number 3

Alias for field number 2

Alias for field number 4


Find alignment hits of all primers in all reads using the edlib/parasail backend

Find UMI in a single reads using the edlib/parasail backend

Find alignment hits of all primers in all reads using the pHMM/nhmmscan backend

Extract details of the first operation in a cigar string.


Process an alignment, extracting score, start and end.


Bases: object

Class for plotting utilities on the top of matplotlib. Plots are saved in the specified file through the PDF backend.

  • self -- object.
  • pdf -- Output pdf.

The report object.
Report

Close PDF backend. Do not forget to call this at the end of your script or your output will be damaged!
self -- object
None
object


Plot multiple pairs of data arrays.
  • self -- object.
  • data_map -- A dictionary with labels as keys and tupples of data arrays (x,y) as values.
  • title -- Figure title.
  • xlab -- X axis label.
  • ylab -- Y axis label.
  • marker -- Marker passed to the plot function.
  • legend_loc -- Location of legend.
  • legend -- Plot legend if True
  • vlines -- Dictionary with labels and positions of vertical lines to draw.
  • vlcolor -- Color of vertical lines drawn.
  • vlwidth -- Width of vertical lines drawn.

None
object


Plot simple bar chart from input dictionary.
  • self -- object.
  • data_map -- A dictionary with labels as keys and data as values.
  • title -- Figure title.
  • xlab -- X axis label.
  • ylab -- Y axis label.
  • alpha -- Alpha value.
  • xticks_rotation -- Rotation value for x tick labels.
  • auto_limit -- Set y axis limits automatically.

None
object


Plot histograms of multiple data arrays.
  • self -- object.
  • data_map -- A dictionary with labels as keys and data arrays as values.
  • title -- Figure title.
  • xlab -- X axis label.
  • ylab -- Y axis label.
  • bins -- Number of bins.
  • alpha -- Transparency value for histograms.
  • legend_loc -- Location of legend.
  • legend -- Plot legend if True.
  • vlines -- Dictionary with labels and positions of vertical lines to draw.

None
object


Utility method to save and close figure.


Return complement of base.

Performs the subsitutions: A<=>T, C<=>G, X=>X for both upper and lower case. The return value is identical to the argument for all other values.

k -- A base.
Complement of base.
str


Generate list of error rates for qualities less than equal than n.

Load primers from fasta file

Parse out runid from sequence description.

Calculate average basecall quality of a read. Receive the ascii quality scores of a read and return the average quality for that read First convert Phred scores to probabilities, calculate average error probability convert average back to Phred scale

Return random floats in the half-open interval [0.0, 1.0). Alias for random_sample to ease forward-porting to the new random API.

Below function taken from https://github.com/lh3/readfq/blob/master/readfq.py Much faster parsing of large files compared to Biopyhton.


Reverse complement sequence record

Return reverse complement of a string (base) sequence.
seq -- Input sequence.
Reverse complement of input sequence.
str


Write read to fastq file







Module contents

  • Index
  • Module Index
  • Search Page

ONT Applications Group

2022, Oxford Nanopore Technologies Ltd.

November 19, 2022 2.7.2