bugfix - wrong function name
This commit is contained in:
		
							
								
								
									
										18
									
								
								RPR-FASTA.R
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								RPR-FASTA.R
									
									
									
									
									
								
							@@ -4,12 +4,13 @@
 | 
				
			|||||||
# Purpose:  A Bioinformatics Course:
 | 
					# Purpose:  A Bioinformatics Course:
 | 
				
			||||||
#              R code accompanying the RPR-FASTA unit.
 | 
					#              R code accompanying the RPR-FASTA unit.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Version:  1.1
 | 
					# Version:  1.1.1
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Date:     2017-10  -  2020-09
 | 
					# Date:     2017-10  -  2020-09
 | 
				
			||||||
# Author:   Boris Steipe (boris.steipe@utoronto.ca)
 | 
					# Author:   Boris Steipe (boris.steipe@utoronto.ca)
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Versions:
 | 
					# Versions:
 | 
				
			||||||
 | 
					#           1.1.1  bugfix - wrong function name
 | 
				
			||||||
#           1.1    2020 Maintenance. Rewrite validation logic. Add data
 | 
					#           1.1    2020 Maintenance. Rewrite validation logic. Add data
 | 
				
			||||||
#                  to utilities. Define AACOLS
 | 
					#                  to utilities. Define AACOLS
 | 
				
			||||||
#           1.0    New unit.
 | 
					#           1.0    New unit.
 | 
				
			||||||
@@ -32,11 +33,11 @@
 | 
				
			|||||||
#TOC> 
 | 
					#TOC> 
 | 
				
			||||||
#TOC>   Section  Title                                 Line
 | 
					#TOC>   Section  Title                                 Line
 | 
				
			||||||
#TOC> -----------------------------------------------------
 | 
					#TOC> -----------------------------------------------------
 | 
				
			||||||
#TOC>   1        Reading and validating FASTA            44
 | 
					#TOC>   1        Reading and validating FASTA            45
 | 
				
			||||||
#TOC>   1.1        Validating FASTA                      80
 | 
					#TOC>   1.1        Validating FASTA                      81
 | 
				
			||||||
#TOC>   2        Parsing FASTA                          225
 | 
					#TOC>   2        Parsing FASTA                          227
 | 
				
			||||||
#TOC>   3        Interpreting FASTA                     245
 | 
					#TOC>   3        Interpreting FASTA                     247
 | 
				
			||||||
#TOC>   4        Writing FASTA                          272
 | 
					#TOC>   4        Writing FASTA                          274
 | 
				
			||||||
#TOC> 
 | 
					#TOC> 
 | 
				
			||||||
#TOC> ==========================================================================
 | 
					#TOC> ==========================================================================
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -215,12 +216,13 @@ FA <- c(">head1",
 | 
				
			|||||||
        ">head3",
 | 
					        ">head3",
 | 
				
			||||||
        "mn",
 | 
					        "mn",
 | 
				
			||||||
        "pqrs")
 | 
					        "pqrs")
 | 
				
			||||||
validate(FA)     # ... should not create an error
 | 
					val(FA)     # ... should not create an error
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# A somewhat more elaborate validateFA() function was loaded with the
 | 
					# A somewhat more elaborate validateFA() function was loaded with the
 | 
				
			||||||
# ./utilities.R script. It needs a bit more bookkeeping, since NCBI multi-
 | 
					# ./utilities.R script. It needs a bit more bookkeeping, since NCBI multi-
 | 
				
			||||||
# fasta files have space-characters in their spacer lines.
 | 
					# fasta files have space-characters in their spacer lines. Try it ...
 | 
				
			||||||
 | 
					validateFA(FA)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# =    2  Parsing FASTA  =======================================================
 | 
					# =    2  Parsing FASTA  =======================================================
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user