Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to calculate no. of bp from txt file,if a particular condition is given?

    hi everyone,

    i have one file of transposons element file in that file 4 column are present in that file chr. no., start, end and notification indicating by Y and N if that is Y it means that is TE else non-TE.
    i want to calculate for a particular window like 0-100000 how many base pairs are present in that window.

    Chr.no. start end notification
    Chr1 44595 47526 Y
    Chr1 47856 53412 Y
    Chr1 95499 98558 Y
    Chr1 99171 100681 N
    Chr1 105872 106534 Y
    Chr1 108618 114983 N
    Chr1 118081 120671 Y
    Chr1 121302 127457 Y
    Chr1 128897 133559 N

    i need output like

    (chr.no.) (bin_size) (total_bp_where_notification_N) (total_bp_where_notification_Y)
    chr.1 0-10000 0 0
    chr.1 10001-20000 0 0
    chr.1 20001-30000
    chr.1 30001-40000
    chr1 40001-50000

    chr2. 0-10000

    But the condition is if one id's start is 90000 and end is 110000 then 10000 bp will go in 0-100000 and rest 10000 bp will go in 100001-200000 window.

  • #2
    It's unclear from your post what your actual question is. I'm not familiar with a program that will do exactly what you describe, but it would be trivial for you to write one.

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Recent Innovations in Spatial Biology
      by seqadmin


      Spatial biology is an exciting field that encompasses a wide range of techniques and technologies aimed at mapping the organization and interactions of various biomolecules in their native environments. As this area of research progresses, new tools and methodologies are being introduced, accompanied by efforts to establish benchmarking standards and drive technological innovation.

      3D Genomics
      While spatial biology often involves studying proteins and RNAs in their...
      01-01-2025, 07:30 PM
    • seqadmin
      Advancing Precision Medicine for Rare Diseases in Children
      by seqadmin




      Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
      12-16-2024, 07:57 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 01-09-2025, 04:04 PM
    0 responses
    431 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 01-09-2025, 09:42 AM
    0 responses
    440 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 01-08-2025, 03:17 PM
    0 responses
    452 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 01-03-2025, 11:18 AM
    1 response
    50 views
    1 like
    Last Post Tonia
    by Tonia
     
    Working...
    X