Documentation
¶
Index ¶
- func AddErr[T any](it iter.Seq[T]) iter.Seq2[T, error]
- func AppendSplit(out []string, s string, sep string) []string
- func AppendString(buf []byte, s string) []byte
- func BedSet[T any](it iter.Seq2[fastats.BedEntry[T], error]) map[string]int
- func CatPath(w io.Writer, path string) error
- func CatPaths(out string, paths ...string) error
- func ChrSpanEq(cs1, cs2 fastats.ChrSpan) bool
- func ChrSpanLess(cs1, cs2 fastats.ChrSpan) bool
- func Cleanup(f CleanupFlags) error
- func CleanupCtx(ctx context.Context, arg Args, i int) error
- func CollectBedWithHeader(path string) ([]fastats.BedEntry[[]string], error)
- func CollectErr[T any](it iter.Seq2[T, error]) ([]T, error)
- func CollectFa(path string) ([]fastats.FaEntry, error)
- func CollectVCF(path string, cols ...int) (names []string, vcf []fastats.VcfEntry[[]string], err error)
- func FaChrSpanSet(it iter.Seq2[fastats.FaEntry, error]) (map[string]int, error)
- func FaFixedWins(fa []fastats.FaEntry, wins iter.Seq2[fastats.ChrSpan, error]) iter.Seq2[fastats.FaEntry, error]
- func FaPosLess(f1, f2 fastats.FaEntry) bool
- func FilterChrParent[T any](parent string, it iter.Seq2[fastats.BedEntry[T], error]) iter.Seq2[fastats.BedEntry[T], error]
- func GetFaChrSpan(f fastats.FaEntry) (fastats.ChrSpan, error)
- func Join(ctx context.Context, args Args) error
- func KeepBedMatches[T any](css map[string]int, it iter.Seq2[fastats.BedEntry[T], error]) iter.Seq2[fastats.BedEntry[T], error]
- func KeepFaMatches(css map[string]int, it iter.Seq2[fastats.FaEntry, error]) iter.Seq2[fastats.FaEntry, error]
- func MakeWins(fa []fastats.FaEntry, coords []CoordsPair, size int, step int, width int) iter.Seq2[fastats.ChrSpan, error]
- func PrepFa(f PrepFaFlags) error
- func PrepareCtx(ctx context.Context, arg Args, i int) error
- func ReadGenos(line []string) ([]string, error)
- func ReadVCF(r io.Reader) (names []string, it iter.Seq2[fastats.VcfEntry[[]string], error], err error)
- func ReadWinBed(r io.Reader) iter.Seq2[fastats.ChrSpan, error]
- func RunCleanup()
- func RunPrepAndClean()
- func RunPrepFa()
- func RunSeparate(ctx context.Context, arg Args, i int) error
- func RunSeparates(ctx context.Context, args Args) error
- func SliceIter[S ~[]T, T any](s S) iter.Seq[T]
- func SortBed[T any](bed []fastats.BedEntry[T])
- func SortFa(fa []fastats.FaEntry)
- func StartSignalhandler(closef func()) (endf func())
- func StripChrParent[T any](it iter.Seq2[fastats.BedEntry[T], error]) iter.Seq2[fastats.BedEntry[T], error]
- func SubsetVCFCols(it iter.Seq2[fastats.VcfEntry[[]string], error], cols ...int) iter.Seq2[fastats.VcfEntry[[]string], error]
- func TensorflowPredict(ctx context.Context, w io.Writer, f TensorflowFlags) error
- func WriteBed(path string, bed iter.Seq2[fastats.BedEntry[[]string], error]) error
- func WriteCoords(path string, it iter.Seq2[CoordsPair, error]) error
- func WriteFasta(path string, it iter.Seq2[fastats.FaEntry, error]) error
- type Args
- type CleanupFlags
- type CoordsPair
- type CrossArgs
- type FullFlags
- type PrepFaFlags
- type StripNaNsOut
- type TensorflowFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendString ¶
func ChrSpanLess ¶
func ChrSpanLess(cs1, cs2 fastats.ChrSpan) bool
func Cleanup ¶
func Cleanup(f CleanupFlags) error
func CollectBedWithHeader ¶
func CollectVCF ¶
func FaFixedWins ¶
func FilterChrParent ¶
func GetFaChrSpan ¶
func GetFaChrSpan(f fastats.FaEntry) (fastats.ChrSpan, error)
func KeepBedMatches ¶
func KeepFaMatches ¶
func PrepFa ¶
func PrepFa(f PrepFaFlags) error
func RunCleanup ¶
func RunCleanup()
func RunPrepAndClean ¶
func RunPrepAndClean()
func StartSignalhandler ¶
func StartSignalhandler(closef func()) (endf func())
func StripChrParent ¶
func SubsetVCFCols ¶
func TensorflowPredict ¶
func WriteCoords ¶
Types ¶
type Args ¶
type Args struct {
Crosses []CrossArgs
Size int
Step int
Width int
Outpre string
Threads int
Paircol int
Prepare bool
Cleanup bool
Combine bool
Predict bool
}
func (Args) CrossCleanupFlags ¶
func (a Args) CrossCleanupFlags(i int) CleanupFlags
func (Args) CrossPrepFlags ¶
func (a Args) CrossPrepFlags(i int) PrepFaFlags
func (Args) TensorflowArgs ¶
func (a Args) TensorflowArgs() TensorflowFlags
type CleanupFlags ¶
type CleanupFlags struct {
Fa1 string
Fa2 string
Bed string
Outpre string
Parent string
Paircol int
}
func GetCleanupFlags ¶
func GetCleanupFlags() (CleanupFlags, error)
type CoordsPair ¶
type CoordsPair struct {
Original fastats.ChrSpan
New fastats.ChrSpan
}
func BuildChr ¶
func BuildChr(entry fastats.FaEntry, vcf []fastats.VcfEntry[[]string]) (fa1, fa2 fastats.FaEntry, coord1, coord2 []CoordsPair)
func BuildFas ¶
func BuildFas(fa []fastats.FaEntry, vcf []fastats.VcfEntry[[]string]) (fa1, fa2 []fastats.FaEntry, coords1, coords2 []CoordsPair)
type PrepFaFlags ¶
type PrepFaFlags struct {
Fa string
Vcf string
C0 int
C1 int
Size int
Step int
Width int
Outpre string
}
func GetPrepFaFlags ¶
func GetPrepFaFlags() (PrepFaFlags, error)
type StripNaNsOut ¶
type StripNaNsOut struct {
Bed []fastats.BedEntry[[]string]
Fa1 []fastats.FaEntry
Fa2 []fastats.FaEntry
}
Click to show internal directories.
Click to hide internal directories.