Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • PLINK: merge bed/bim/fam files error

    Hi,

    I was trying to merge several files (each chr has separate file) into one big file. I gave the following command:

    plink --noweb --bfile T2.chr1 --merge-list mylist.txt --make-bed --out T2

    but get the following error:

    ERROR: Cannot merge files. Check your MAP files.


    mylist.txt contains:

    T2.chr2.bed T2.chr2.bim T2.chr2.fam
    T2.chr3.bed T2.chr3.bim T2.chr3.fam
    T2.chr4.bed T2.chr4.bim T2.chr4.fam
    .
    .


    All the individual .fam files appear to be identical (same file size).

    What am I doing wrong?

    thanks.

  • #2
    Hey mate

    First suggestion I would be using plink 1.9 (don't have to worry about the annoying --noweb )

    Try a process of elimination.. do a basic loop to to merge each chromosome separately until you find the troublesome file

    But if it is error is related to a map file I am unsure why it is asking for that format.. you could try to --recode the data into Ped format and try merging...

    Just make sure in your mylist.txt that you use a tab separator

    This is a basic script out of one of my pipelines that might help you or might be totally useless but here it is anyways

    for i in {1..22}

    do

    plinknew --ped chr"$i".ped --map chr"$i".map --make-bed --noweb --out chr"$i"

    done



    ls *.bed > bed.txt
    ls *.bim > bim.txt
    ls *.fam > fam.txt

    paste bed.txt bim.txt fam.txt | column -s $'\t' -t > merge.temp.list

    grep -v -w "chr1." merge.temp.list > merge.list

    plinknew --bfile chr1 --merge-list merge.list --make-bed --out P67_raw

    Hope that helps in some way

    Cheers

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Current Approaches to Protein Sequencing
      by seqadmin


      Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
      04-04-2024, 04:25 PM
    • seqadmin
      Strategies for Sequencing Challenging Samples
      by seqadmin


      Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
      03-22-2024, 06:39 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 04-11-2024, 12:08 PM
    0 responses
    27 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 10:19 PM
    0 responses
    30 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 09:21 AM
    0 responses
    26 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-04-2024, 09:00 AM
    0 responses
    52 views
    0 likes
    Last Post seqadmin  
    Working...
    X