Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Is there any $PATH default setting? Post 302699473 by yifangt on Tuesday 11th of September 2012 07:01:24 PM
Old 09-11-2012
Is there any $PATH default setting?

This is a very newbie's question:
I was trying to add a new version of the same command "blastn", but the old command always shows up first.
Code:
which blastn
/usr/local/bin/blastn

The two versions of the same command "blastn" are located in:
Code:
which -a blastn
/usr/local/bin/blastn
/home/yifangt/download-software/bin/blastn

What I want is the one in my home directory "/home/yifangt/download-software/bin" .
I had specified the second one in my .bashrc file (and .bash_profile)
Code:
export PATH=$PATH:/home/yifangt/download-software/bin

How can get rid of the "/usr/local/bin/blastn" without removing the whole directory?
I can't remove the blastn in "/usr/local/bin" because it is preferred by other people, and many other commands sit in that directory too.
I had thought the my local .bashrc will overwrite the old $PATH so that "/home/yifangt/blastn" should be the one I use. Did I miss anything?
Thanks a lot!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Setting $PATH for a particular file...????

:) dear members; I am trying to placea directory to keep minor records in particular directories.. rather than just rely on hard links.. I would like to set the $PATH variable so that I can access the directory itself from anywhere; ex./ /tmp or /bin /var... I know how to export enviromental... (4 Replies)
Discussion started by: moxxx68
4 Replies

2. UNIX for Dummies Questions & Answers

Help on setting path variable

Hi there, I need help on setting the path variable. How can I set the path variable with Bourne Shell. My scripts goes like this, but did not work. #!/bin/sh PATH=/usr/bin:/usr/ucb:/etc:/export/home/zchen/home export PATH Thanks, Z (4 Replies)
Discussion started by: randomcz
4 Replies

3. Shell Programming and Scripting

Setting path

Hi all, I have a java command in a shell script. When i m executing the command from the prompt its working fine. But when i paste the same command in a shell script and execute the shell script it says path not found. Please help. (5 Replies)
Discussion started by: radhika03
5 Replies

4. Solaris

Problem Setting $PATH

I am trying to install the pkg-get package to a fresh install of Solaris 10. I am able to download and install correctly using the default directory for both pkg-get and wget as found on blastwave.org. When I issue the command "which wget and which pkg-get" it returns no wget or pkg-get found in... (1 Reply)
Discussion started by: greengrass
1 Replies

5. Shell Programming and Scripting

Setting up a path in UNIX

I have the following script "test". When i tried to execute it, I am not able to run it. I dunno why ? Then i tried getting the first few lines of the script which is displayed below: $head -10 test #!/bin/ksh PROG=$0;export PROG ORAUSER=`get_inf_env INFORM_DB_ACCOUNT`;export ORAUSER... (13 Replies)
Discussion started by: bobby1015
13 Replies

6. Solaris

Setting PATH - Vanishes

Hi , I new to solaris. I want to set path variable . Eg: JAVA_HOME. When i do this, #JAVA_HOME=/usr/jdk/jdk1.6 #export JAVA_HOME #echo $JAVA_HOME /usr/jdk/jdk1.6 Then its ok. When i toggle to bourne shell or if i log off or restart. then JAVA_HOME is echoed blank. How to set... (4 Replies)
Discussion started by: gnanagurus
4 Replies

7. Shell Programming and Scripting

Setting path names

I am in a directory called /abstracts Doing tree -d gives . ├── geo1936 │ ├── geo01n01 │ ├── geo01n02 │ └── geo01n03 ├── geo1937 │ ├── geo02n01 │ ├── geo02n02 │ ├── geo02n03 │ └── geo02n04 (4 Replies)
Discussion started by: kristinu
4 Replies

8. UNIX for Dummies Questions & Answers

Setting up a private path

Hi all, This is probably a very simple question but I couldn't even think of how to phrase it intelligently so google could tell me the answer. Basically I am a user on a server, I am not the admin and do not have root privileges. I have downloaded a bunch of programs that I need to use and... (2 Replies)
Discussion started by: DavyK1984
2 Replies

9. Shell Programming and Scripting

Setting class path

hi , can anybody help me to chage the class path in unix server.. what are the files need to update .... (2 Replies)
Discussion started by: Madhu Siddula
2 Replies
Bio::Tools::Run::StandAloneBlastPlus::BlastMethods(3pm) User Contributed Perl DocumentationBio::Tools::Run::StandAloneBlastPlus::BlastMethods(3pm)

NAME
Bio::Tools::Run::StandAloneBlastPlus::BlastMethods - Provides BLAST methods to StandAloneBlastPlus SYNOPSIS
# create a factory: $fac = Bio::Tools::Run::StandAloneBlastPlus->new( -db_name => 'testdb' ); # get your results $result = $fac->blastn( -query => 'query_seqs.fas', -outfile => 'query.bls', -method_args => [ '-num_alignments' => 10 , $result = $fac->tblastx( -query => $an_alignment_object, -outfile => 'query.bls', -outformat => 7 ); # do a bl2seq $fac->bl2seq( -method => 'blastp', -query => $seq_object_1, -subject => $seq_object_2 ); DESCRIPTION
This module provides the BLAST methods (blastn, blastp, psiblast, etc.) to the Bio::Tools::Run::StandAloneBlastPlus object. USAGE
This POD describes the use of BLAST methods against a Bio::Tools::Run::StandAloneBlastPlus factory object. The object itself has extensive facilities for creating, formatting, and masking BLAST databases; please refer to Bio::Tools::Run::StandAloneBlastPlus POD for these details. Given a "StandAloneBlastPlus" factory, such as $fac = Bio::Tools::Run::StandAloneBlastPlus->new( -db_name => 'testdb' ); you can run the desired BLAST method directly from the factory object, against the database currently attached to the factory (in the example, "testdb"). "-query" is a required argument: $result = $fac->blastn( -query => 'query_seqs.fas' ); Here, $result is a Bio::Search::Result::BlastResult object. Other details: o The blast output file can be named explicitly: $result = $fac->blastn( -query => 'query_seqs.fas', -outfile => 'query.bls' ); o The output format can be specified: $result = $fac->blastn( -query => 'query_seqs.fas', -outfile => 'query.bls', -outformat => 7 ); #tabular o Additional arguments to the method can be specified: $result = $fac->blastn( -query => 'query_seqs.fas', -outfile => 'query.bls', -method_args => [ '-num_alignments' => 10 , '-evalue' => 100 ]); o To get the name of the blast output file, do $file = $fac->blast_out; o To clean up the temp files (you must do this explicitly): $fac->cleanup; bl2seq() Running "bl2seq" is similar, but both "-query" and "-subject" are required, and the attached database is ignored. The blast method must be specified explicitly with the "-method" parameter: $fac->bl2seq( -method => 'blastp', -query => $seq_object_1, -subject => $seq_object_2 ); Other parameters ( "-method_args", "-outfile", and "-outformat" ) are valid. Return values The return value is always a Bio::Search::Result::BlastResult object on success, undef on failure. SEE ALSO
Bio::Tools::Run::StandAloneBlastPlus, Bio::Tools::Run::BlastPlus FEEDBACK
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated. bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists Support Please direct usage questions or support issues to the mailing list: bioperl-l@bioperl.org rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible. Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web: http://redmine.open-bio.org/projects/bioperl/ AUTHOR - Mark A. Jensen Email maj -at- fortinbras -dot- us Describe contact details here CONTRIBUTORS
Additional contributors names and emails here APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ run() Title : run Usage : Function: Query the attached database using a specified blast method Returns : Bio::Search::Result::BlastResult object Args : key => value: -method => $method [blastp|blastn|blastx|tblastx|tblastn| rpsblast|psiblast|rpstblastn] -query => $query_sequences (a fasta file name or BioPerl sequence object or sequence collection object) -outfile => $blast_report_file (optional: default creates a tempfile) -outformat => $format_code (integer in [0..10], see blast+ docs) -method_args => [ -key1 => $value1, ... ] (additional arguments for the given method) bl2seq() Title : bl2seq Usage : Function: emulate bl2seq using blast+ programs Returns : Bio::Search::Result::BlastResult object Args : key => value -method => $blast_method [blastn|blastp|blastx| tblastn|tblastx] -query => $query (fasta file or BioPerl sequence object -subject => $subject (fasta file or BioPerl sequence object) -outfile => $blast_report_file -method_args => [ $key1 => $value1, ... ] (additional method parameters) next_result() Title : next_result Usage : $result = $fac->next_result; Function: get the next BLAST result Returns : Bio::Search::Result::BlastResult object Args : none rewind_results() Title : rewind_results Usage : $fac->rewind_results; Function: rewind BLAST results Returns : true on success Args : blast_out() Title : blast_out Usage : $file = $fac->blast_out Function: get the filename of the blast report file Returns : scalar string Args : none perl v5.12.3 2011-06-18 Bio::Tools::Run::StandAloneBlastPlus::BlastMethods(3pm)
All times are GMT -4. The time now is 07:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy