Preprocessing : pp#
Extracting gap from path, preprocessing recipes.
Reading and writing#
Prepares the Verkko environment by creating necessary directories, locking the original directory, and loading the paths file for further processing. |
|
Read the chromosome assignment results and store them in the object. |
|
Writes the fixed paths to a file. |
|
Save the Verkko fillet object to a file using pickle. |
|
Load the Verkko fillet object from a file using pickle. |
|
Creates a new CNS directory by creating symbolic links to the original verkko directory. |
|
Updates the CNS directory by handling missing edges and creating necessary symbolic links or files. |
|
Load the object of Giraffe genome from a file using pickle. |
|
Reads a GAF file and stores it as a pandas DataFrame in the provided object. |
|
Reads a QV (Quality Value) file, parses it, and attaches the resulting DataFrame to the provided object. |
Preprocessing#
Find the internal telomeres in the assembly. |
|
Find the reads support for the additional artifical sequences outside of the telomere. |
|
Find gaps in the 'path' column of the DataFrame and store the result in the 'gaps' column. |
|
Searches for paths containing all specified nodes with a minimum mapping quality and length. |
|
Extracts and filters paths containing specific nodes from the graph alignment file (GAF). |
|
Highlight the nodes in the obj.paths DataFrame. |
|
Fills gaps for a specific gapId, updates the 'fixedPath', 'startMatch', 'endMatch', and 'finalGaf' columns. |
|
Estimate the number of loops between two nodes in the graph. |
|
This function checks and prints the number of filled gaps in the 'gap' DataFrame and shows the progress bar for gap filling. |
|
Connects two contigs by adding a gap between them. |
|
Rename the contigs based on the provided chromosome map file. |
|
Find nodes that are used in more than one path. |
|
Find HiC support for a specific node. |
|
Deletes a gap from the 'gap' DataFrame for a specific gapId. |
|
Plot the depth of nodes in the graph. |
|
Find contigs that assigned same chromosome and haplotype. |
Last touch#
Get the node and chromosome mapping from the VerkkoFillet object. |