static int pileup_func_1( uint32_t tid, uint32_t pos, int n, const bam_pileup1_t *pl, void *data
1
0
Entering edit mode
9.4 years ago
static int pileup_func_1( uint32_t tid, uint32_t pos, int n, const bam_pileup1_t *pl, void *data ) \
{
  pileup_data_t *tmp = (pileup_data_t*)data;
  if( pos >= tmp->beg && pos < tmp->end ) /
  {
    // Count the number of reads that pass the mapping quality threshold across this base  /
    int  mapq_n = 0;i,
    for( i = 0; i < n; ++i )
    {
      const bam_pileup1_t *base = pl + i;
      if( !base->is_del && base->b->core.qual >= tmp->min_mapq )
        mapq_n++;
    }
    tmp->bam1_cvg[pos - tmp->beg] = ( mapq_n >= tmp->min_depth_bam1 );  //??
  }
  return 0;
}

who can tell me the meaning of these parameters of this function? Thank you

uint32_t tid, uint32_t pos, int n, const bam_pileup1_t *pl, void *data
genome musci cal-covg • 1.9k views
ADD COMMENT
1
Entering edit mode
9.4 years ago
  • uint32_t tid: chromosome index in the sam sequence dictionary of the SAM header
  • uint32_t pos: position in the chromosome
  • int n: number of reads in the 'pl' below
  • const bam_pileup1_t *pl: the reads under tid:pos
  • void *data custom user data for the C callback
ADD COMMENT
0
Entering edit mode

Can you give me some examples???

Thanks very much!

ADD REPLY
0
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 2656 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6