Sff_Extract Question
2
2
Entering edit mode
14.4 years ago
Walter ▴ 150

how do get the sff_extract download to work in mira ie copy file from bin to user directory

• 3.5k views
ADD COMMENT
4
Entering edit mode
14.4 years ago
User 59 13k

sff_extract (presumably from here) is a Python script. Assuming a) you have Python installed and b) the first line of the file points to #!/usr/bin/env python (or the location of your Python interpreter) then a simple

chmod 755 sff_extract; ./sff_extract

(or copy to a bin directory in your $PATH) should be sufficient. If you want to call it explicitly then

python sff_extract

will also work.

ADD COMMENT
0
Entering edit mode
14.4 years ago
Walter ▴ 150

After following the instructions you gave me and installed python. the command went as follows

[admin@ty10063-per ~]$ cd Desktop
[admin@ty10063-per Desktop]$ ls
chevreux_thesis_MIRA.pdf
flower
HKI_B_TCMID15_080410.fasta
HKI_B_TCMID15_080410.qual
mira_3.2.0_prod_linux-gnu_i686_32_static
mira_3.2.0_prod_linux-gnu_i686_32_static.tar.bz2
Python-2.6.5
sff_extract
TEST ERROR MIRA3
[admin@ty10063-per Desktop]$ cd mira_3.2.0_prod_linux-gnu_i686_32_static
[admin@ty10063-per mira_3.2.0_prod_linux-gnu_i686_32_static]$ ls
bin              docs           minidemo       scripts      THANKS
CHANGES_old.txt  docs_3rdparty  mira_assembly  stickleback
CHANGES.txt      LICENCE        README         support
[admin@ty10063-per mira_3.2.0_prod_linux-gnu_i686_32_static]$ sudo cp bin/<em> /usr/local/bin
[sudo] password for admin: 
[admin@ty10063-per mira_3.2.0_prod_linux-gnu_i686_32_static]$ sudo cp scripts/</em> /usr/local/bin
[admin@ty10063-per mira_3.2.0_prod_linux-gnu_i686_32_static]$ chmod 755 sff_extract;./sff_extract
chmod: cannot access `sff_extract': No such file or directory
bash: ./sff_extract: No such file or directory
[admin@ty10063-per mira_3.2.0_prod_linux-gnu_i686_32_static]$

QUESTION:

Why do i get the error message No such file or Directory

Thanks alot Daniel

ADD COMMENT
0
Entering edit mode

That is rather difficult to read. I think that you have copied sff_extract from scripts/ to /usr/local/bin. The errors are because you are not giving the full path to sff_extract. You need to do either chmod 755 scripts/sff_extract or sudo chmod 755 /usr/local/bin/sff_extract. Then, run it either as ./scripts/sff_extract (for the copy in scripts/) or just sff_extract (for the copy in /usr/local/bin - that copy should be in your PATH, type which sff_extract to see if it is). File paths are important in Linux - read up on them.

ADD REPLY

Login before adding your answer.

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