Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • yuchioj
    replied
    update:

    ran the first code on server and it went through... really not sure why...

    Leave a comment:


  • yuchioj
    started a topic Rsamtools scanBam error

    Rsamtools scanBam error

    Dear all,

    I got this problem when using Rsamtools to get data from 1000 Genome Project.

    Code:
    na19240url="ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA19240/alignment/NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam"
    which <- GRanges(seqnames ="6", ranges = IRanges(1e+05, 110000))
    p <- ScanBamParam(which = which)
    na19240bam <- scanBam(na19240url, param = p)
    This is exactly the same as is in the manual however it led to errror:
    Code:
    Error in open.BamFile(BamFile(file, index), "rb") : 
      failed to open SAM/BAM file
      file: 'ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA19240/alignment/NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam'
    In addition: Warning messages:
    1: In open.BamFile(BamFile(file, index), "rb") : gethost: 11004
    2: In open.BamFile(BamFile(file, index), "rb") : select time-out
    3: In open.BamFile(BamFile(file, index), "rb") :
      [kftp_connect_file] 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer
    I thought it was because I didn't index it. Hence I downloaded the .bai file and retried:

    Code:
    download.file("ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/pilot_data/data/NA19240/alignment/NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam.bai","NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam.bai")
    na19240bam <- scanBam(na19240url, index="NA19240.chrom6.SLX.maq.SRP000032.2009_07.bam", param = p)
    Still the same error. Anyone knows why? Thanks!

    Yuchioj

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

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, Yesterday, 07:35 AM
0 responses
20 views
0 likes
Last Post seqadmin  
Started by seqadmin, 01-23-2025, 09:43 AM
0 responses
14 views
0 likes
Last Post seqadmin  
Started by seqadmin, 01-23-2025, 08:36 AM
0 responses
18 views
0 likes
Last Post seqadmin  
Started by seqadmin, 01-17-2025, 09:38 AM
0 responses
37 views
0 likes
Last Post seqadmin  
Working...
X