Sample .sam file
1
0
Entering edit mode
7.7 years ago

I'm currently writing a program to which the input is a .sam file. Now to try a few things out I want to use a sample .sam file. I have used a simple one I made up myself, but I would want one from real data (preferably sorted).

I have looked around but I have only found sample .bam files. My problem is that I have been unable to get samtools to work (and believe be I have tried). I have also been unable to get other similar tools like Picard to work. This means that I'm unable to convert .bam to .sam.

Do anyone know were you can find such sample .sam files?

next-gen sam alignment sequence • 3.0k views
ADD COMMENT
3
Entering edit mode

Wouldn't it be more interesting to fix your samtools issue? Installation of that shouldn't be too hard. What's going wrong?

ADD REPLY
1
Entering edit mode

as @WouterDeCoster said post the error that you got specially that for tool like Picard you only need Java to make it work and it is straightforward, To report an error you need to post your operating system version , the error you have ,

reefer to

How to Use Biostars, Part-I: Questions, Answers, Comments and Replies

http://stackoverflow.com/help/how-to-ask

ADD REPLY
0
Entering edit mode

Basically samtools requires some program to do something. However, the computers to which I have had acess won't permit me to install that programs that samtool needs.

I spent almost 6 weeks this spring trying to bypass it before I gave up.

(I have some hopes that I will get acess to a computer able to run samtools in a few weeks. Hopefully)

ADD REPLY
1
Entering edit mode

Okay, if you remain that vague you shouldn't expect any help. Samtools should be an easy installation, if that doesn't work on your system then you need to fire your sysadmin. 6 weeks is ridiculously long for an installation that is so common...

ADD REPLY
0
Entering edit mode

(Samtools is a long story, to begin with I were not supposed to have acess to any linux computer (for some reason their use were very restricted) and when I got acess to one the sysadmins were very reluctant to let me add any kind of program (at least I managed to get the BWA-MEM mapper to work).)

Long story short is that I have no samtools but that is another problem. The only reason that I mentioned samtools is due to that problem I need to find some sample file not in the .bam format rather I am looking for one in the .sam format (there are some topics here already but all recommended there are in the .bam format)

(on the samtools issue, things are changing here and I should be able to run it in a few weeks)

ADD REPLY
1
Entering edit mode

You can find an example sorted sam file here. You would need to be able to access github.com.

Are you able to run java on your computer? If so you may be able to use igvtools from IGV to sort sam files. See this page for example data.

ADD REPLY
0
Entering edit mode

Thank you very much! Just what I needed!

(Thanks for the IGV tips as well. I run Java but did not know about it. Will look into it)

ADD REPLY
2
Entering edit mode

My problem is that I have been unable to get samtools to work (and believe be I have tried). I have also been unable to get other similar tools like Picard to work

enter image description here

what @WouterDeCoster said : what is the problem with samtools ?

ADD REPLY
0
Entering edit mode
7.5 years ago
glihm ▴ 660

To convert a bam file to a sam file:

Biostars topic ==> How Can I Convert Bam To Sam?

ADD COMMENT

Login before adding your answer.

Traffic: 2372 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