8000 GitHub - IvanTsers/chr: Functions for fast search of common homologous regions
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

IvanTsers/chr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chr: common homologous regions

This package contains functions for fast search of homologous regions shared by multiple closely related genomes. The interface of chr consists of the Intersect function and the Parameters struct:

chr.Intersect(chr.Parameters)

The function returns a slice of pointers to fasta sequences []*fasta.Sequence. The type fasta is defined in the fasta package.

Parameters

type Parameters struct {
        Reference       []*fasta.Sequence
	ShiftRefRight	bool
        TargetDir       string
        Threshold       float64
        ShustrPval      float64
        CleanSubject    bool
        CleanQuery      bool
        PrintSegSitePos bool
        PrintN          bool
        PrintOneBased   bool
}

Fields of this data structure contain parameters used to call Intersect(). The parameters include:

  1. reference slice of fasta sequences
  2. a switch to shift the output coordinates to the right by a given number
  3. path to the directory of target genomes minus the reference
  4. a threshold, the minimum fraction of intersecting genomes
  5. a p-value of the shustring length (needed for sus.Quantile)
  6. a switch to clean subject's sequence. To clean a sequence is to remove non-ATGC nucleotides.
  7. a switch to clean query sequences
  8. a switch to print positions of segregation sites in output's headers
  9. a switch to print N at the positions of mismatches
  10. a switch to print one-based coordinates.

About

Functions for fast search of common homologous regions

Resources

Stars

Watchers

Forks

Packages

No packages published
0