GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
bl_overlap_set_all(3) FreeBSD Library Functions Manual bl_overlap_set_all(3)

#include <biolibc/overlap.h>
-lbiolibc -lxtend

int bl_overlap_set_all(bl_overlap_t *overlap, uint64_t feature1_len, uint64_t feature2_len, uint64_t overlap_start, uint64_t overlap_end)

feature1_len      Length of feature 1
feature2_len      Length of feature 2
overlap_start    Start position of overlap relative to start of feature 1
overlap_end      End position of overlap relative to start of feature 1

Set all fields in a bl_overlap_t structure. Start and end positions are 1-based regardless of the feature type. (BED file positions are 0-based and must be adjusted before passed to this function.)

BL_DATA_OK upon success. BL_DATA_INVALID is arguments don't make sense.

    bed_start = BL_BED_CHROM_START(bed_feature);
    bed_end = BL_BED_CHROM_END(bed_feature);
    gff_start = BL_GFF_CHROM_START(gff_feature);
    gff_end = BL_GFF_CHROM_END(gff_feature);
    bed_len = bed_end - bed_start;
    gff_len = gff_end - gff_start + 1;
    bl_overlap_set_all(overlap, bed_len, gff_len,
                    MAX(bed_start+1, gff_start),
                    MIN(bed_end, gff_end));

bl_overlap_print(3)


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.