Assign 1

CompbioCourse.Assign1 History

Hide minor edits - Show changes to markup

January 31, 2013, at 11:02 PM by 128.113.126.13 -
Changed line 21 from:
  • Email your script and output file to bioinfo.rpi@gmail.com. The subject of the email should be assign1-rcsid.
to:
  • Email your script and output file to bioinfo.rpi@gmail.com. The subject of the email should be assign1-rcsid.
January 31, 2013, at 11:01 PM by 128.113.126.13 -
Changed line 18 from:

Submit an email with the following:

to:
Changed lines 20-21 from:
  • Your program files, named as LocalAlignmentLinear.XX and LocalAlignmentAffine.XX, where XX is either "py" or "r". Do not hard code path names. Assume that the two sequences and BLOSUM62 matrix are in the local dir.
to:
  • Your program files, named as assign1-rcsid-linear.XX and assign1-rcsid-affine.XX, where XX is either "py" or "r", and rcsid is your RCS id. Do not hard code path names. Assume that the two sequences and BLOSUM62 matrix are in the local dir.
  • Email your script and output file to bioinfo.rpi@gmail.com. The subject of the email should be assign1-rcsid.
Changed line 62 from:
  • < 9 hours late: 10% penalty, 9-24 hours late: 25% penalty, 24-48 hours late: 50% penalty, > 48 hours: 100% penalty
to:
  • < 9 hours late: 10% penalty, 9-24 hours late: 25% penalty, 24-48 hours late: 50% penalty, > 48 hours: 100% penalty
January 31, 2013, at 10:52 PM by 128.113.126.13 -
Changed line 19 from:
  • Document (word/pdf/txt) that includes your answers: local alignment output , using linear gap penalty of -3, and a gap opening and extension penalty of -5 and -2, respectively
to:
  • Document (word/pdf/txt) that includes your answers: local alignment output, using linear gap penalty of -3, and a gap opening and extension penalty of -5 and -2, respectively
January 31, 2013, at 10:50 PM by 128.113.126.13 -
Changed line 10 from:

Write the basic method for linear gap penalty. Make the penalty an input parameter for you method.

to:

Write the basic method for linear gap penalty. Make the penalty an input parameter for your method.

January 31, 2013, at 10:49 PM by 128.113.126.13 -
Changed line 2 from:

Due Date: Friday, Feb 10, 11:59:59pm (i.e., before midnight)

to:

Due Date: Monday, Feb 11, 11:59:59pm (i.e., before midnight)

January 31, 2012, at 03:49 PM by 128.113.126.13 -
Changed line 41 from:

With gap opening penalty of -2 and gap extension penalty of -2, your output should match:

to:

With gap opening penalty of -2 and gap extension penalty of -2 (i.e., a linear gap penalty of -2), your output should match:

Changed line 50 from:

With gap opening penalty of -5 and gap extension penalty of -5, your output should match:

to:

With gap opening penalty of -5 and gap extension penalty of -5 (i.e., a linear gap penalty of -5), your output should match:

January 31, 2012, at 03:48 PM by 128.113.126.13 -
Changed line 19 from:
  • Document (word/pdf/txt) that includes your answers: local alignment output , using linear gap penalty of -4, and a gap opening and extension penalty of -5 and -2, respectively
to:
  • Document (word/pdf/txt) that includes your answers: local alignment output , using linear gap penalty of -3, and a gap opening and extension penalty of -5 and -2, respectively
January 31, 2012, at 02:46 PM by 128.113.126.13 -
Changed line 1 from:

Sequence Alignment & Function

to:

Sequence Alignment

Changed lines 4-6 from:

Step 1: Local Alignment

In this assignment you will write a program to perform a local alignment of two protein sequences, using the BLOSUM62 scoring matrix, and using affine gap penalties (-5 for gap opening, and -2 for gap extension). You must write your own program for the alignment, but you can use library functions (from biopython) to read the sequences and substitution matrices.

to:

Local Alignment

In this assignment you will write a program to perform a local alignment of two protein sequences, using the BLOSUM62 scoring matrix. You must write your own program for the alignment, but you can use library functions (from biopython) to read the sequences and substitution matrices.

Added lines 9-15:

Part 1

Write the basic method for linear gap penalty. Make the penalty an input parameter for you method.

Part 2

Extend the code to handle affine gap penalties, i.e., a separate gap opening, and gap extension penalty. Both of these should be input parameters.

Changed lines 19-20 from:
  • Document (word/pdf/txt) that includes your answers: 1) local alignment output.
  • Your program file as a single file called LocalAlignment.XX. XX is either "py" or "r". Do not hard code path names. Assume that the two sequences and BLOSUM62 matrix are in the local dir.
to:
  • Document (word/pdf/txt) that includes your answers: local alignment output , using linear gap penalty of -4, and a gap opening and extension penalty of -5 and -2, respectively
  • Your program files, named as LocalAlignmentLinear.XX and LocalAlignmentAffine.XX, where XX is either "py" or "r". Do not hard code path names. Assume that the two sequences and BLOSUM62 matrix are in the local dir.
January 31, 2012, at 02:18 PM by 128.113.126.13 -
Changed line 5 from:

In this assignment you will write a program to perform a local alignment of two protein sequences, using the BLOSUM62 scoring matrix, and using affine gap penalties (-5 for gap opening, and -2 for gap extension). You must write your own program for the alignment, but you can use library functions (from bioperl or biopython) to read the sequences and substitution matrices.

to:

In this assignment you will write a program to perform a local alignment of two protein sequences, using the BLOSUM62 scoring matrix, and using affine gap penalties (-5 for gap opening, and -2 for gap extension). You must write your own program for the alignment, but you can use library functions (from biopython) to read the sequences and substitution matrices.

January 31, 2012, at 02:18 PM by 128.113.126.13 -
Changed lines 2-3 from:

Due Date: Feb 14, 11:59:59pm

to:

Due Date: Friday, Feb 10, 11:59:59pm (i.e., before midnight)

Changed lines 9-15 from:

Step 2: BLAST

After you find the best local alignment, copy and paste the aligned region into the NCBI protein blast server to find out the gene that produces these proteins in Humans (Homo Sapiens) and Fruit Fly (Drosophila Melanogaster). You can do two separate BLAST searches, one for Human and one for Fruit Fly. Describe the name/function of this gene in both organisms.

Step 3: What to turn in

to:

What to turn in

Changed lines 12-13 from:
  • Document (word/pdf) that includes your answers: 1) local alignment output, and 2) the gene names/functions.
  • Your program file as a single file called LocalAlignment.XX. XX is either "pl", "py" or "r". Do not hard code path names. Assume that the two sequences and BLOSUM62 matrix are in the local dir.
to:
  • Document (word/pdf/txt) that includes your answers: 1) local alignment output.
  • Your program file as a single file called LocalAlignment.XX. XX is either "py" or "r". Do not hard code path names. Assume that the two sequences and BLOSUM62 matrix are in the local dir.
February 07, 2011, at 10:54 PM by 128.113.126.13 -
Changed line 32 from:

Best Local Alignment: score= 26.0 len= 10

to:

Best Local Alignment: score= 24.0 len= 10

February 04, 2011, at 10:26 PM by 128.113.126.13 -
Changed line 5 from:

In this assignment you will write a program to perform a local alignment of two protein sequences, using the BLOSUM62 scoring matrix, and using affine gap penalties (-5 for gap opening, and -2 for gap extension). You must write your own program for the alignment, but you can use library functions (from or ) to read the sequences and substitution matrices.

to:

In this assignment you will write a program to perform a local alignment of two protein sequences, using the BLOSUM62 scoring matrix, and using affine gap penalties (-5 for gap opening, and -2 for gap extension). You must write your own program for the alignment, but you can use library functions (from bioperl or biopython) to read the sequences and substitution matrices.

February 04, 2011, at 10:25 PM by 128.113.126.13 -
Changed lines 5-6 from:

In this assignment you will write a program to perform a local alignment of two protein sequences, using the BLOSUM62 scoring matrix, and using affine gap penalties (-5 for gap opening, and -2 for gap extension). You must write your own program for the alignment, but you can use library functions to read the sequences and substitution matrices.

to:

In this assignment you will write a program to perform a local alignment of two protein sequences, using the BLOSUM62 scoring matrix, and using affine gap penalties (-5 for gap opening, and -2 for gap extension). You must write your own program for the alignment, but you can use library functions (from or ) to read the sequences and substitution matrices.

Added line 13:
February 04, 2011, at 10:23 PM by 128.113.126.13 -
Added lines 18-54:

Sample Output

To check your code you may use these two short sequences:

>s1
HPQPATY

>s2
HPQNQSPAAH

With gap opening penalty of -5 and gap extension penalty of -2, your output should match:

Best Local Alignment:  score= 26.0 len= 10
seq1 pos= 0 7 seq2 pos= 0 10

HPQ---PATY
HPQNQSPAAH

With gap opening penalty of -2 and gap extension penalty of -2, your output should match:

Best Local Alignment:  score= 27.0 len= 10
seq1 pos= 0 7 seq2 pos= 0 10

HP--Q-PATY
HPQNQSPAAH

With gap opening penalty of -5 and gap extension penalty of -5, your output should match:

Best Local Alignment:  score= 20.0 len= 3
seq1 pos= 0 3 seq2 pos= 0 3

HPQ
HPQ
February 04, 2011, at 10:12 PM by 128.113.126.13 -
Changed lines 15-16 from:
  • Create a document (word/pdf) that includes your answers: 1) local alignment output, and 2) the gene names/functions.
to:

Submit an email with the following:

  • Document (word/pdf) that includes your answers: 1) local alignment output, and 2) the gene names/functions.
February 04, 2011, at 10:07 PM by 128.113.126.13 -
Added lines 1-21:

Sequence Alignment & Function

Due Date: Feb 14, 11:59:59pm

Step 1: Local Alignment

In this assignment you will write a program to perform a local alignment of two protein sequences, using the BLOSUM62 scoring matrix, and using affine gap penalties (-5 for gap opening, and -2 for gap extension). You must write your own program for the alignment, but you can use library functions to read the sequences and substitution matrices.

Here are the two sequences you have to align in FASTA format: seq1.txt, and seq2.txt. The BLOSUM62 data is here: BLOSUM62.txt

Step 2: BLAST

After you find the best local alignment, copy and paste the aligned region into the NCBI protein blast server to find out the gene that produces these proteins in Humans (Homo Sapiens) and Fruit Fly (Drosophila Melanogaster). You can do two separate BLAST searches, one for Human and one for Fruit Fly. Describe the name/function of this gene in both organisms.

Step 3: What to turn in

  • Create a document (word/pdf) that includes your answers: 1) local alignment output, and 2) the gene names/functions.
  • Your program file as a single file called LocalAlignment.XX. XX is either "pl", "py" or "r". Do not hard code path names. Assume that the two sequences and BLOSUM62 matrix are in the local dir.

Late Policy

  • < 9 hours late: 10% penalty, 9-24 hours late: 25% penalty, 24-48 hours late: 50% penalty, > 48 hours: 100% penalty