I'm trying to convert a BAM file to a BIGWIG file on my mac using the following link:
https://github.com/chapmanb/bcbb/blo...m_to_wiggle.py
Could someone explain what commands I have to put into the terminal (or in Sublime Text)? My BAM file is called Galaxy6RmDupdata.bam. I couldn't figure this out myself from the explanation in the link itself. Any help would be greatly appreciated!
Many thanks,
Stijn
Couldn't find the folder you want to use
For running a python script :
./ script.py
orpython script.py
I tried this, but when I run:
python BAM_BIGWIG.py Galaxy6RmDupdata.bam (Galaxy6RmDupdata.bam is the name of my bam file)
I get:
I still can't find your python file Are you sure about the usage of the script?
I renamed the bam_to_wiggle.py file from the link above to BAM_BIGWIG.py. Does this answer your question?
Thanks for your help btw!
Is'nt the above mentioned python code only converts BAM to wiggle (NOT bigwig) ?
http://github.com/chapmanb/bcbb/blob/master/nextgen/scripts/bam_to_wiggle.py
you need to have wigToBigWig as mentioned in this post
Okay I got it ... Thanks:)
Yes about that, do you know how to install this?
What I did was that i went to this link: http://hgdownload.cse.ucsc.edu/admin/exe/ Clicked on macOSX.i386/ Clicked on wigToBigWig And then this file started to download. But I'll probably need to install it right? Now I posted it in the same directory as the python file, but it still gives the same error messages as is shown above... Also the command pip install wigToBigWig in the terminal doesn't work, this only gives:
Could not find a version that satisfies the requirement wigToBigWig (from versions: ) No matching distribution found for wigToBigWig
There is no installation needed. You are downloading a pre-compiled program. You may need to add execute permissions by doing
sudo chmod u+x wigToBigWig
. After that you can run it like./wigToBigWig options
from the directory where it is located.I did just that and it worked. Now I get another error, would you happen to know what it means? Thanks!
Error is about not finding a file/directory in your $PATH or the directly where you are running the command from. Can you post the full command you used?
Are you sure that your version of macOS is 32 bit and not 64 bit. Try with 'macOSX.x86_64/' version.
Hello robbenstijn!
It appears that your post has been cross-posted to another site: http://seqanswers.com/forums/showthread.php?t=74398
This is typically not recommended as it runs the risk of annoying people in both communities.