10 More Discussions You Might Find Interesting
1. Programming
I realize this general issue (inputting strings of variable length in C) has been addressed in myriad locations before, but I'm interested in knowing why my specific approach is not working. (BTW I'm intentionally keeping the size increments small so that I can more easily follow what's going on.... (5 Replies)
Discussion started by: DevuanFan
5 Replies
2. Shell Programming and Scripting
I am trying to read 30 files into a command. The first file contains 10 lines and goes into this part of the command as "x"
/tmp/filearrange.sh $x
The group of files (20 files, I call them variable $i) need to be the second argument in the command and they need to be read so that they are... (9 Replies)
Discussion started by: newbie2010
9 Replies
3. Programming
I can't seem to successfully output characters with spaces. I inputted using getchar().
Any other ideas?
Thank you in advance!
printf ("Enter the Title : ");
int i = 0;
int c1;
while (( c1!= '\n')&& (i <21))
{
new_name->title = c1;
i++; ... (0 Replies)
Discussion started by: Nephilim.F
0 Replies
4. Shell Programming and Scripting
Hi,
Hope you are all well. New to scripting, and all those characters are all a new language for me. Though hoping to get my little head round it all sooner or later.
I was wondering whether anyone could help with a script template example.
What I would like to happen is to run the script... (8 Replies)
Discussion started by: loky27
8 Replies
5. UNIX for Dummies Questions & Answers
Hi all, I have a script which uses a basic line to add text into another file e.g.
grep -i test * >> test.txt
Is there a way I can get the output of the grep to output to a specific line in the text.txt for example output above the line starting "Bottom line..." (6 Replies)
Discussion started by: JayC89
6 Replies
6. Homework & Coursework Questions
Hi All,
We've been given the exercise below and I'm stumbling at the first block because we have to take in 20 student names and I don't know how to store them! :(
I know that I can create (initialize) 20 different char arrays but this seems wrong somehow...
What's the best way to store... (2 Replies)
Discussion started by: pondlife
2 Replies
7. Shell Programming and Scripting
Hi all,
In one of my script, somewhere I need to input password of a server when ssh password's prompt comes. I've tried with EOF but it's not taking. I don't want to disable password through ssh. I want the password should be passed with my script. Any suggestion?
Thanks in advance! (2 Replies)
Discussion started by: naw_deepak
2 Replies
8. Shell Programming and Scripting
I have this working ksh, and it returns like below:
LOGICAL VOLUME: prod_2048_005 VOLUME GROUP: prod1vg
TYPE: raw WRITE VERIFY: off
PHYSICAL VOLUME: hdisk108 VOLUME GROUP: prod1vg
TOTAL PPs: 1023 (130944 megabytes) VG DESCRIPTORS: 1
USED PPs: 904 (115712 megabytes) MAX REQUEST: 1 megabyte... (1 Reply)
Discussion started by: Daniel Gate
1 Replies
9. UNIX for Dummies Questions & Answers
Hiya all ... i am a newbie to UNIX,
Just want to knwo what this command does:
/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'
I think, 'grep shows the line with 'inet addr' (which is the 2nd line, displaying the IP Address, Broadcast Address and Subnet Mask) ... Is... (8 Replies)
Discussion started by: ad4m88
8 Replies
10. UNIX for Dummies Questions & Answers
from the man page of su:
EXAMPLES
Example 1: Becoming User bin While Retaining Your Previously
Exported Environment
To become user bin while retaining your previously exported
environment, execute:
example% su bin
Example 2: Becoming User bin and ... (4 Replies)
Discussion started by: afflack
4 Replies
Bio::Tools::OddCodes(3pm) User Contributed Perl Documentation Bio::Tools::OddCodes(3pm)
NAME
Bio::Tools::OddCodes - Object holding alternative alphabet coding for one protein sequence
SYNOPSIS
# Take a sequence object from eg, an inputstream, and creates an
# object for the purposes of rewriting that sequence in another
# alphabet. These are abbreviated amino acid sequence alphabets,
# designed to simplify the statistical aspects of analysing protein
# sequences, by reducing the combinatorial explosion of the
# 20-letter alphabet. These abbreviated alphabets range in size
# from 2 to 8.
# Creating the OddCodes object, eg:
my $inputstream = Bio::SeqIO->new( '-file' => "seqfile",
'-format' => 'Fasta');
my $seqobj = $inputstream->next_seq();
my $oddcode_obj = Bio::Tools::Oddcodes->new(-seq => $seqobj);
# or:
my $seqobj = Bio::PrimarySeq->new
(-seq=>'[cut and paste a sequence here]',
-alphabet => 'protein',
-id => 'test');
my $oddcode_obj = Bio::Tools::OddCodes->new(-seq => $seqobj);
# do the alternative coding, returning the answer as a reference to
# a string
my $output = $oddcode_obj->structural();
my $output = $oddcode_obj->chemical();
my $output = $oddcode_obj->functional();
my $output = $oddcode_obj->charge();
my $output = $oddcode_obj->hydrophobic();
my $output = $oddcode_obj->Dayhoff();
my $output = $oddcode_obj->Sneath();
my $output = $oddcode_obj->Stanfel();
# display sequence in new form, eg:
my $new_coding = $$output;
print "
$new_coding";
DESCRIPTION
Bio::Tools::Oddcodes is a welterweight object for rewriting a protein sequence in an alternative alphabet. Eight of these are provided,
ranging from the the 2-letter hydrophobic alphabet, to the 8-letter chemical alphabet. These are useful for the statistical analysis of
protein sequences since they can partially avoid the combinatorial explosion produced by the full 20-letter alphabet (eg. 400 dimers, 8000
trimers etc.)
The objects will print out a warning if the input sequence is not a protein. If you know what you are doing, you can silence the warning by
setting verbose() to a negative value.
See SYNOPSIS above for object creation code.
REFERENCES
Stanfel LE(1996) A new approach to clustering the amino acids. J. theor. Biol. 183, 195-205.
Karlin S, Ost F and Blaisdell BE(1989) Patterns in DNA and amino acid sequences and their statistical significance. Chapter 6 of:
Mathematical Methods for DNA Sequences. Waterman MS (ed.) CRC Press, Boca Raton , FL.
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 one
of the Bioperl mailing lists. 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 the bugs and their resolution. Bug reports can be submitted via the
web:
https://redmine.open-bio.org/projects/bioperl/
AUTHOR
Derek Gatherer
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
structural
Title : structural
Usage : $output = $oddcode_obj->structural();
Function: turns amino acid sequence into 3-letter structural alphabet
: A (ambivalent), E (external), I (internal)
Example : a sequence ACDEFGH will become AAEEIAE
Returns : Reference to the new sequence string
Args : none
functional
Title : functional
Usage : $output = $oddcode_obj->functional();
Function: turns amino acid sequence into 4-letter functional alphabet
: A (acidic), C (basic), H (hydrophobic), P (polar)
Example : a sequence ACDEFGH will become HPAAHHC
Returns : Reference to the new sequence string
Args : none
hydrophobic
Title : hydrophobic
Usage : $output = $oddcode_obj->hydrophobic();
Function: turns amino acid sequence into 2-letter hydrophobicity alphabet
: O (hydrophobic), I (hydrophilic)
Example : a sequence ACDEFGH will become OIIIOII
Returns : Reference to the new sequence string
Args : none
Dayhoff
Title : Dayhoff
Usage : $output = $oddcode_obj->Dayhoff();
Function: turns amino acid sequence into 6-letter Dayhoff alphabet
Example : a sequence ACDEFGH will become CADDGCE
: A (=C), C (=AGPST), D (=DENQ),
: E (=HKR), F (=ILMV), G (=FWY)
Returns : Reference to the new sequence string
Args : none
Sneath
Title : Sneath
Usage : $output = $oddcode_obj->Sneath();
Function: turns amino acid sequence into 7-letter Sneath alphabet
Example : a sequence ACDEFGH will become CEFFHCF
: A (=ILV), C (=AGP), D (=MNQ), E (=CST),
: F (=DE), G (=KR), H (=FHWY)
Returns : Reference to the new sequence string
Args : none
Stanfel
Title : Stanfel
Usage : $output = $oddcode_obj->Stanfel();
Function: turns amino acid sequence into 4-letter Stanfel alphabet
Example : a sequence ACDEFGH will become AACCDAE
: A (=ACGILMPSTV), C (=DENQ), D (=FWY), E (=HKR)
Returns : Reference to the new sequence string
Args : none
chemical
Title : chemical
Usage : $output = $oddcode_obj->chemical();
Function: turns amino acid sequence into 8-letter chemical alphabet
: A (acidic), L (aliphatic), M (amide), R (aromatic)
: C (basic), H (hydroxyl), I (imino), S (sulphur)
Example : a sequence ACDEFGH will become LSAARAC
Returns : Reference to the new sequence string
Args : none
charge
Title : charge
Usage : $output = $oddcode_obj->charge();
Function: turns amino acid sequence into 3-letter charge alphabet
Example : a sequence ACDEFGH will become NNAANNC
: A (negative; NOT anode), C (positive; NOT cathode), N (neutral)
Returns : Reference to the new sequence string
Args : none
perl v5.14.2 2012-03-02 Bio::Tools::OddCodes(3pm)