Home

manual

image

Contents

1. 55 7 6 3 Extracting a Part of a Single Reference Sequence 55 7 6 4 Extracting Only Long Contigs Useful for De Novo Assembly 55 7 6 5 Extracting a Subset of Read Sequences 55 1 6 6 Other Match RESUICGHONS s 44 cok m4 D an d DE a ns ae 55 7 6 7 Output Reference File o 55 71026 Qutp t Read File as s wio a 0 ee als a a a A A 56 7 6 9 Handling of non specific matches 56 7 7 The clc_unmapped_reads Programi s a s lt a a 56 GS The cle unpaired reads Progra sec ro Serge eye aoe ee See ee eS 57 1 9 The cle_agp join Program 4 a 8 08 8 we mo ne a ee Oe met de 6 Gas 4 57 8 Sequence preparation tools 58 SA The cie adapter trim Proga s mersa munis bas dede de Ee a 58 8 2 Quality TIMMINE s s oia es eee ee eee bee on Ree ee 59 S2 L Fastd Quality SCONE oa su si Le ee sn us mit st 59 8 3 The cle remove duplicates 60 SL Looking for NEIBNDOIS G Lau aoe demie bains SR mb bons de 61 8 3 2 Sequencing errors in duplicates 62 ee SO A case fea Bod upd ght be ees Beds eo ks he es E 62 S34 Known lIMtations 2 64464 ba bad ga mehdi awe ane 62 8 3 5 Example of duplicate read removal 63 8 4 The clc_sample_ reads Program ss 44 pag ge da nas ee EES 63 So TeCIC SONL pairs PrOBraM LL gon subit dois Le te ee OR ae
2. serverip 192 168 1 200 serverport 6200 useserver true The serverip and serverport should be edited to match your license server set up This text file then should be placed in the licenses folder of the installation area of CLC Assembly Cell Locations supported in earlier versions of CLC Assembly Cell can still be used although we recommend the location above The full list of locations is e in the licenses folder of the installation area of CLC Assembly Cell e in the working directory e in etc clcbio licenses on the executing machine or e in HOME clcbio licenses where HOME is the home directory of the user executing the program 2 6 Restricting CPU usage De novo assembly and mapping programs will use all cores available on the system if the job is large enough to warrant this Should you wish to limit the number of cores to be used by a particular analysis cpus option can be used to set the maximum This option is included in the full listing of options for the relevant programs Chapter 3 The Basics The chapter covers the basics of command line use in CLC Assembly Cell including data format considerations such as supported data formats the cas assembly file format and conversion to other assembly formats The chapter ends with an overview of paired data handling in CLC Assembly Cell 3 1 How to use the programs The CLC Assembly Cell consists of standard command line tools where the tool name is
3. In particular cas files contain the following information e General info such as program that made the file its version and its parameters e The file names for the reference sequences e The file names for the read sequences Information about the reference sequences their number lengths etc The scoring scheme used when making the file Information about each read Whether it matches anywhere Which reference sequence does it match to Alignment between the reference sequence and the read The number of places the read matches Whether the read is part of a pair 3 3 3 What a cas file does not contain Cas format files do not contain any sequence data Rather than the sequence information itself cas files contain the names of the corresponding read and reference sequence files AS sequence reads and references already exist much space can be saved by not generating a second copy of them as part of the assembly output file 3 3 4 Considerations and limitations The cas file format is designed with high volume assembly data in mind However there are certain considerations that should be kept in mind 1 There is a limit of one alignment position per read In other words a read matching in multiple locations can only be assigned to one of these locations within the cas file This limitation is in place because when assembling short reads to a large genome some reads may match hundreds of thousan
4. AC CLC Assembly Cell USER MANUAL User manual for CLC Assembly Cell 4 4 2 Windows Mac OS X and Linux November 9 2015 This software is for research purposes only CLC bio a QIAGEN Company Silkeborgvej 2 Prismet DK 8000 Aarhus C Denmark LC bio AQIAGEN Company Contents 1 Introduction 1 1 Overview of Commands 0 0 0 0 ee 4 4 11 14 1 12 1 13 1 1 4 1 1 5 Core analysis TOONS uva eR E dau ar al Ae e aA pa Reporting OOS OVEMIEW a ai a a ook OR e aa ee ke Assembly post processing tools Sequence preparation tools Format CONVERSION ios aS soa d mon Hd aS god ha Sew nu 1 2 Latest improvements 4444 404 2 System Requirements and Installation 2A System regre MENTE ss a 4 10 4 ad aed we oe das he the st 21 1 2A Limitations on maximum number of cores Supported CPU architectures s s s eee ee ee a deg 2 2 DISK SPaC cou woe au ace oe EK ee a de du dt OG ee a Ge de de wl 2 3 Downloading and installing the software 2 4 Installing Static license o s sa si ee be be ba ban eee ee 2 4 1 2 4 2 2 4 3 Licensing the software on a networked Linux or Mac machine Licensing the software on a networked Windows machine Licensing the software on a non networked machine 2 5 Net
5. These factors will usually not affect the paired distance properties of the results but a smaller fraction of the reads might match Further details can be found in Appendix B Chapter 7 Assembly post processing tools This chapter covers tools included in CLC Assembly Cell that can be used to further process cas assembly files 7 1 The clc_change_cas_paths Program Cas files contain information about the files containing the reference and read data used in the mapping This includes the paths to those files The clc_change_cas_paths program allows you to change the file names and paths for the read and reference data files referred to in a cas file This is useful if you have moved the sequence data files and also can be useful when sharing cas files and the constituent data reads and references with others In addition to changing the locations of the data files this tool can also be useful for changing relative file paths to absolute paths or vice versa The data file information is provided to this tool using the same parameters used with the clc_mapper tool That is using the d q and i options The input cas file is specified with the a option and the cas file to be generated containing the updated file locations is specified with the o option By default the clc _change _cas _paths program compares the sequence files to make sure they contain the same data If the original read files in
6. 1 has 1 match with a score of 4860 1 has 1 match with a score of 38288 has 1 match with a score of 38122 has 1 match with a score of 81906 SLXA EAS1_89 1 1 492 826 2 has 1 match with a score of 81685 TIC GGT I GC GGTC PEL GGTGG PTIT AAATG LILLI CCCAC LIII TC Note GGTTGCTGGTC GGTGG AAATGTTCCCAC 81719 35 29 35 32 35 35 coli read coli reverse read coli read coti reverse read coli read coli reverse read coli read The positions in the standard output assumes the reference sequence starts at O However the a option assumes that the reference starts at 1 This is due to the fact that the a option is intended to produce human readable output whereas the standard option is intended to be used by computer programs If multiple hit positions are recorded in the cas file using the t option when running the assembly running the assembly_ table with the m the output looks like this 35 35 35 35 35 35 35 35 35 35 o o00O00000o0o 35 0 19625 35 0 19815 35 0 2512501 35 0 607436 39 0 15593 35 0 2512321 35 0 607256 35 0 15413 35 0 14374 35 0 14194 19660 19850 2512536 607471 15628 2512356 607291 15448 14409 14229 O OO OO oe BE ey O2 m HR HG we CHAPTER 6 REPORTING TOOLS 49 Reads 482 and 483 map in three place
7. If you are not sure if your CPU is supported send a mail to support clcbio qiagen com with all available technical information about your computer 2 2 Disk space Data from Next Generation sequencing machines naturally take up a lot of disk space Besides the output files the CLC Assembly Cell will sometimes write temporary files These files will be written to the directory specified in the TMP variable on Windows and TMPDIR on Linux and Mac 2 3 Downloading and installing the software 1 Download the distribution from http www clcbio com products clc assembly cell direct downloads 2 Unzip the zip file and ensure that the resulting folder is placed in the desired final location on your computer There are two main types of license for the CLC Assembly Cell software static and network Static licenses are tied to the hardware to which they are downloaded Network licenses are served using a separate piece of software the CLC License Server and allow CLC Assembly Cell programs to run on any machine that can contact the License Server For running the software on a computer cluster the most common license type would be a network license which would then allow you to submit jobs to any node of your computer cluster CHAPTER 2 SYSTEM REQUIREMENTS AND INSTALLATION 13 For obtaining an evaluation license please follow the instructions in the static license section 2 4 Installing Static license For purchased li
8. The assembler will attempt to align the ends of such contigs and if a high quality overlap is found the contigs are joined into a single contig If no overlap is found the distance estimate is set to two so that all remaining scaffolds have positive distance estimates Furthermore Ns can also be present in output contigs in cases where input sequencing reads themselves contain Ns Please note that in CLC Genomics Workbench 6 0 1 Genomics Server 5 0 1 Assembly Cell 4 0 2 and all earlier versions of these products a performance optimization gave rise to Ns being inserted in certain non scaffold regions which in the current version can be solved with reads covering such specific regions Additional information on how paired reads have been used to in the scaffolding step can be printed by using f to specify an output file for GFF or AGP 2 0 formatted annotations The annotations in table format can be viewed by clicking the Show Annotation Table icon E at the bottom of the viewing area Show annotation types in the side panel allows you to select the annotation Scaffold among a list of other annotations The annotations tell you about the scaffolding that was performed by the de novo assembler That is it tells you where particular contigs those areas containing complete sequence information were joined together across regions without complete sequence information For the GFF format there are three types of annotations e Scaffo
9. allele over the other will be arbitrary If heterozygous variants are important they can be identified after the assembly by mapping the reads back to the contig sequences and performing standard variant calling For random sequencing errors it is more straightforward given a reasonable level of coverage the erroneous variant will be suppressed Figure 5 15 shows an example of a data set where the reads have systematic errors Some reads include five As and others have six This is a typical example of the homopolymer errors seen with the 454 and lon Torrent platforms AGATGACCAGGGTGTCGATAAAAAATGCCAATCATCTGGAC AGATGACCAGGGTGTCGAT AAAAATGCCAATCATCTGGAC AGATGACCAGGGTGTCGAT AAAAATGCCAATCATCTGGAC AGATGACCAGGGTGTCGAT AAAAATGCCAATCATCTGGAC AGATGACCAGGGTGTCGATAAAAAATGCCAATCATCTGGAC AGATGACCAGGGTGTCGATAAAAAATGCCAATCATCTGGAC AGATGACCAGGGTGTCGAT AAAAATGCCAATCATCTGGAC AGATGACCAGGGTGTCGAT AAAAATGCCAATCATCTGGAC AGATGACCAGGGTGTCGAT AAAAATGCCAATCATCTGGAC AGATGACCAGGGTGTCGAT AAAAATGCCAATCATCTGGAC Figure 5 15 Reads with systematic errors When these reads are assembled this site will give rise to a bubble in the graph This is not a problem in itself but if there are several of these sites close together the two paths in the graph will not be able to merge between each site This happens when the distance between the sites is smaller than the word size used see figure 5 16 l AAA E5 m Systematic er
10. certain type and use the i interleave parameter to pair up the two files clc_mapper q p fb ss 50 500 i paired_l fa paired_2 fa Behind the scenes the pairs are interleaved and processed together gt SLXA EAS1_89 1 1 672 654 1 GCTACGGAATAAAACCAGGAACAACAGACCCAGCA gt SLXA EAS1_89 1 31 672 654 2 ATTAACAACAAAGGGTAAAAGGCATCATGGCTTCA gt SLXA EAS1_89 1 1 657 649 1 GCAGAAAAT GGGAGT GAAAATCTCCGATGAGCAGC gt SLXA EAS1_89 1 1 657 649 2 TGATGCGACGACGCACCTCGTTGTTACGCACTTCA CHAPTER 4 READ MAPPING 24 If you have a paired file that is already interleaved you can leave out the i interleav parameter clc_mapper q p fb ss 50 500 interleaved_pairs fastq For detailed information about the p fb ss 50 500 parameter please refer to 3 4 4 3 Alignment parameters The read mapper aligns the reads according to a user specified scoring scheme that expresses your expectation of what the data looks like and guides the mapper in deciding whether a particular alignment is good or bad As a rule of thumb you want to choose a scoring scheme that matches the expected character istics of the data For example if you are using a sequencing technology that has a tendency to produce errors in the form of gaps you may want to lower the gap cost slightly to indicate that gaps are expected to occur frequently Keep in mind that the mapper deals with reads individually and so cannot distinguish between biolo
11. of pairs between 99 0 of pairs between 95 0 of pairs between Not pairs Both seqs not matching One seq not mathing Both seqs matching Different contigs Wrong directions Too close Too far Note that for paired analysis clc_mapping_info assumes that read one pairs with read two read 1 108420 1506 106914 0 13 42 9253 100000 Sd 0 0 3 99997 29 Coverage 372 9 2478655 215 175 191 197 143727 21946 62938 58843 0 40524 663 17656 44 253 241 234 CHAPTER 6 REPORTING TOOLS 51 three with read four etc Thus it is crucial that the reads are from a paired experiment and that they are assembled in the right order possibly using the interleaved option for creating the assembly If an assembly has a mixture of paired and unpaired data use clc_submapping to make an assembly with only the paired data before analyzing When a dataset contains paired data of unknown distances a good approach is to make an initial reference assembly without using paired information Then the clc_mapping_info program can be used to investigate the paired distance properties of the data using wide limits for the distances Finally a reference assembly run can be performed with the estimated paired distances at a suitable distance interval To get a quicker result the initial reference assembly run may be done on only a part of the data using ungapped alignments and or using stricter scoring criteria
12. 63 8 6 The clc_split_reads Program for 454 paired data 2 64 8 7 he che ovenapfeadS Program ue a socair be pravers Se GURON Ee ee SS 65 9 Format conversion tools 67 9 1 Whecle cas lo Sa Program 2 5 3 o e ed 67 9 2 The Cle sam to cas Programi a aos ee ce ae Sh Se do og ae cm nu ae Bar ae us 67 gua The cle convert SEQUEntES Program a d a 24 4k he ue EA A Marre 68 CONTENTS 7 A Updating program names from earlier versions 69 B Options for All Programs 71 C Third Pary Libraries 72 Bibliography 73 Index 73 Chapter 1 Introduction Welcome to CLC Assembly Cell 4 4 2 a software package supporting your daily bioinformatics work This package includes command line tools for performing de novo assemblies read mappings and basic downstream analysis of the results of these analyses CLC Assembly Cell also includes utility tools for certain types of data pre processing and sequence format conversion The names of the programs of CLC Assembly Cell have changed since version 3 2 2 and earlier Please see section A for more information 1 1 Overview of Commands There are many tools within the CLC Assembly Cell We list the tools included briefly here with chapters dedicated to details about the core tools and then other categories of tools following Full usage information for all tools are given in section B The full usage information for each program can also be viewed by executing it w
13. C s Likewise for G s and T s For the three different types of errors we get three different ends of the read Along with the correct reads we may get four different versions of the original genome due to errors So if SOLID reads are just regarded in nucleotide space we get four different contig sequences with jumps from one to another every time there is a sequencing error Thus to fully accommodate SOLID sequencing data the special nature of the technology has to be considered in every step of the assembly algorithm Furthermore SOLID reads are fairly short and often quite error prone Due to these issues we have chosen not to include SOLID support in the first algorithm steps but only use the SOLID data where they have a large positive effect on the assembly process when applying paired information Thus the clc_assembler program has a special option p d to indicate that a certain data set should be used only for its paired information This option should always be applied to SOLID data It is also useful for data sets of other types with many errors The errors might have the effect of confusing the initial graph building more than improving it But the paired information is still valuable and can be used with this option 5 5 Command line options This section provides details of the command line options available for the clc_assembler command As with all other programs in the CLC Assembly Cell full usage information are give
14. CLC Assembly Cell programs assembly_info gt clc_mapping_info assembly_table gt clc_mapping_table castosam gt clc_cas_to_sam change_assembly_files gt clc_change_cas_paths clc_novo_assemble gt clc_assembler clc_ref_assemble_long gt clc_mapper_legacy clc_ref_assemble gt clc_mapper filter _ matches gt clc_ filter matches join_assemblies gt clc_join_mappings join_pairs gt clc_overlap_reads quality_trim gt clc_quality_trim remove_duplicates gt clc_remove_duplicates samtocas gt clc_sam_to_cas sequence_info gt clc_sequence_info simulate_reads gt clc_simulate_reads sort_pairs gt clc_sort_pairs split_sequences gt clc_split_reads sub_assembly gt clc_submapping tofasta gt clc_convert_sequences unassembled_reads gt clc_unmapped_reads 69 APPENDIX A UPDATING PROGRAM NAMES FROM EARLIER VERSIONS 70 unpaired_reads gt clc_unpaired_reads Appendix B Options for All Programs Please find the list of options for all programs in the online version of the user manual at http clcsupport com clcassemblycell current index php manual Options_All_ Programs html 71 Appendix C Third Pary Libraries The CLC Assembly Cell for windows includes a number of third party libraries Please consult the files named NOTICE and LICENSE in the assembly cell installation directory for the legal notices and acknowledgements of use For the
15. a read mapping If the exporter encounters such a region it will give a warning but not stop If the exporter is executed on an assembly from GWB versions older than 6 5 it will often stop with an error saying that it encountered more than 10 N s which wasn t marked as a scaffold region In this case the user would have to rerun the assembly with GWB version 6 5 or newer of the de novo assembler if they wish to be able to export to AGP Currently we output two types of annotations in AGP format e Contig a non redundant sequence not containing any scaffolded regions e Scaffold the estimated gap region between two contigs 5 1 5 Bubble resolution Before the graph structure is converted to contig sequences bubbles are resolved As mentioned previously a bubble is defined as a bifurcation in the graph where a path furcates into two nodes and then merge back into one An example is shown in figure 5 14 CHAPTER 5 DE NOVO ASSEMBLY 38 _7 ACABACGGGCCCCTACTTAAATCTTCTTTTG ATCGACGCACAAACGGGCCCCTAL _7 TTAAATCTTCTTTTGGCCTATGC ACAAACGGGCCCCTAGTTAAATCTTCTTTTG Figure 5 14 A bubble caused by a heteroygous SNP or a sequencing error In this simple case the assembler will collapse the bubble and use the route through the graph that has the highest coverage of reads For a diploid genome with a heterozygous variant there will be a fifty fifty distribution of reads on the two variants and this means that the choice of one
16. as well as the fragment between them and that the distance range is between 180 and 250 bases How data should be used in the assembly p d lt mode gt lt distance_mode gt lt min_dist gt lt max_dist gt An additional option d can be added to the p flag to indicate that the reads should only be used in the fourth step of the assembly as listed at the top of this section That is the paired distance information associated with these reads is used when optimizing the graph The sequence information itself is not used towards the assembly result This is useful for data such as SOLID where the reads are quite short and may contain many errors Such reads would not by themselves be of great help in building and optimizing the graph initially but the paired information associated with them can be valuable during the final graph optimization stage Please also refer to the information about the g option in the section below The letter b in the mode strings refers to the word backwards but the more common word to use to describe this relative orientation is reverse CHAPTER 5 DE NOVO ASSEMBLY 43 g lt mode gt fragmentmode lt mode gt You might choose to use this option with longer reads that are expected to contain many errors for example in the case of 454 reads Here mode can be one of two values use and ignore The default is that all data is run with g use Providing the g ignore be
17. bp word size 28 430481558907 bp 1291444676720 bp word size 29 1291444676721 bp 3874334030162 bp word size 30 3874334030163 bp 11623002090488 bp ete This pattern multiplying by 3 continues until word size of 64 which is the max Please note that the range of word sizes is 12 24 on 32 bit computers and 12 64 on 64 bit computers The word size can also be specified manually using the w option Using the v verbose option you can see the word size that is automatically calculated by the assembler 5 1 1 Resolve repeats using reads Having build the de Bruijn graph using words CLC bio s de novo assembler removes repeats and errors using reads This is done in the following order CHAPTER 5 DE NOVO ASSEMBLY 31 Remove weak edges e Remove dead ends Resolve repeats using reads without conflicts Resolve repeats with conflicts e Remove weak edges e Remove dead ends Each phase will be explained in the following subsections Remove weak edges The de Bruijn graph is expected to contain artifacts from errors in the data The number of reads agreeing upon an error is likely to be low especially compared to the number of reads without errors for the same region When this relative difference is large enough it s possible to conclude something is an error In the remove weak edges phase we consider each node and calculate the number c of edges connected to the node and the number of times k a r
18. code found in this product that is subject to the Lesser General Public License LGPL you can receive a copy of the corresponding source code by sending a request to our support function 72 Bibliography Gnerre et al 2011 Gnerre S Maccallum l Przybylski D Ribeiro F J Burton J N Walker B J Sharpe T Hall G Shea T P Sykes S Berlin A M Aird D Costello M Daza R Williams L Nicol R Gnirke A Nusbaum C Lander E S and Jaffe D B 2011 High quality draft assemblies of mammalian genomes from massively parallel sequence data Proceedings of the National Academy of Sciences of the United States of America 108 4 1513 8 Li et al 2010 Li R Zhu H Ruan J Qian W Fang X Shi Z Li Y Li S Shan G Kristiansen K Li S Yang H Wang J and Wang J 2010 De novo assembly of human genomes with massively parallel short read sequencing Genome research 20 2 265 72 Zerbino and Birney 2008 Zerbino D R and Birney E 2008 Velvet algorithms for de novo short read assembly using de Bruijn graphs Genome Res 18 5 821 829 Zerbino et al 2009 Zerbino D R McEwen G K Margulies E H and Birney E 2009 Pebble and rock band heuristic resolution of repeats and scaffolding in the velvet short read de novo assembler PloS one 4 12 e8407 73 Index Bibliography 73 Cores maximum limit 12 CPU architectures 12 CPU cores max
19. commands A command like the following would imply that the data in 454reads sff was paired in an interleaved file with the reads having relative orientation of forward reverse and a paired distance range of 200 to 400 bases That is the earlier information provided to the p parameter would be used for all the following data entered in the command clc_assembler o myContigs fasta p fb ss 200 400 q i pairedRead memberl fastag pairedRead member2 fastq g ignore q 454read sff A command like the following would fail because all reads are now used in a guidance only role This leaves no reads being used to create the graph fragments in the initial stage The reason here is that the g ignore parameter is given early in the command and because not g use parameter is entered later all read sets are ignored for the building of the fragments clc_assembler o myContigs fasta g ignor p no q 454read sff p fb ss 200 400 q i pairedRead member1 fastq pairedRead member2 fastq Chapter 6 Reporting tools 6 1 The clc_sequence_info Program The clc_sequence_info program gives some basic information about the sequences in a fasta file File data paired fasta Number of sequences 47356 Residue counts Total 11114027 Sequence length Minimum 170 Maximum 240 Average 234 69 Using the r options include counts of the different types of nucleotides with all ambiguous nucleotides counted as N s The a optio
20. ending in F5 Please note that in the case of Solid data the following combinations for the read names in a pair of files are not allowed F3 F3 R5 F5 R3 R3 R3 F5 F5 R3 As mentioned in the Input Data section earlier in the manual the full sequence of any read containing one or more symbols present in a csfasta format file will be converted to contain only N characters Further details are provided in Appendix B 8 6 The clc_split_reads Program for 454 paired data The 454 sequencing technology can produce paired read files where the two paired read fragments are contained within the same read separated by a linker sequence The linker may be placed anywhere in the read or even outside the read so not all the reads will necessarily contain a pair The clc_split_reads program finds the linker sequence and creates two new files one with paired reads and one with unpaired reads Like adapter regions linker regions may contain sequencing errors With this in mind the clc_split_reads tool identifies likely linker sequences by initially carrying out an alignment between the known linker Sequence and each read The alignment is global in terms of the linker and local in terms of the reads That is the whole linker must align to part of the read Matching positions in these alignments score 1 while each mismatch costs 2 and each gap costs 3 For alignments found at the ends of reads any non matching linker bases that exte
21. graph such that an unambiguous choice of how to traverse the graph cannot by made However evidence from paired data supports one of these routes and on this basis this route is followed to the exclusion of the other s 3 Scaffold The route through the graph is not clear but evidence from paired data supports the connection of two contigs A single contig is then reported with N characters between the two connected regions This entity is also known as a scaffold The number of N characters represents the expected distance between the regions based on the evidence the paired data If one chooses not to scaffold a resulting gff annotation file will still report any Contigs joined and Alternatives excluded optimizations as these are still performed in this case Further details about Scores column 6 For annotation type Scaffold the size of the gap that has been estimated between scaffolded sections of the contig is reported in the score column For annotation type Alternatives Excluded the score is reported as the word size 1 This value merely serves as a reminder that the region reported for this event is associated with the word size used for the assembly For annotation type Contigs Joined the value in the score column is O 5 1 How it works CLC bio s de novo assembly algorithm works by using de Bruijn graphs This is similar to how most new de novo assembly algorithms work Zerbino and Birney 2008 Zerbino et al 2
22. of the command line options for this tool are provided in Appendix B 9 3 The clc_convert_sequences Program The primary purpose of this tool is to convert sequences to fasta or fastq format However it can currently be used for a variety of sequence conversion related functions These include e Convert from one format to a fasta format file or to a fastq format file e Merge separate forward and reverse read files into a single interleaved paired data file e Remove sequence names from within a file to save space e Create a fastq format file from Separate Sequence and quality files Input formats supported for some or all functionality e fasta e fastq e genbank e sff e csfasta Export formats are fasta or fastq See Appendix B for full usage information Appendix A Updating program names from earlier versions The names of the programs of CLC Assembly Cell have changed since version 3 2 2 and earlier A mapping of the new program names to the old program names is contained in the distribution in a file called clc_name_changes txt For Linux and Mac users a script has been included as an example of how you could up date the Assembly Cell program names in existing scripts you have The script is called change_clc_names sh If you plan to use the script without changes please read through it first to make sure that it will do what you need Below is a listing of the old names followed by the new names for the
23. one node has two forward neighbors _7 AGATACACCTCTAGGC GATACACCTCTAGGCA S AGATACACCTCTAGGT GATACACCTCTAGGTC ACTAGATACACCTCTA CTAGATACACCTCTAG TAGATACACCTCTAGG Figure 5 2 Three nodes connected each sharing 15 bases with its neighboring node and ending with two forward neighbors After reduction the three first nodes are merged and the two sets of forward neighboring nodes are also merged as shown in figure 5 3 AGATACACCTCTAGGCA TT AGATACACCTCTAGGTC ACTAGATACACCTCTAGG Figure 5 3 The five nodes are compacted into three Note that the first node is now 18 bases and the second nodes are each 17 bases So bifurcations in the graph leads to separate nodes In this case we get a total of three nodes after the reduction Note that neighboring nodes still have an overlap in this case 15 nucleotides since the word length is 16 Given this way of representing the de Bruijn graph for the reads we can consider some different situations When we have a SNP or a sequencing error we get a so called bubble this is explained in detail in section 5 1 5 as shown in figure 5 4 _7 ACAAACGGGCCCCTACTTAAATCTTCTTTTG TT ACAAACGGGCCCCTAGTTAAATCTTCTTTTG Figure 5 4 A bubble caused by a heterozygous SNP or a sequencing error ATCGACGCACAAACGGGCCCCTA TTAAATCTTCTTTTGGCCTATGC Here the central position may be either a C or a G If this was a Sequencing error occurring only once we would see that one path through the
24. provided followed by any flags or parameters required All input to the command including designating input and output files is done via parameter arguments General things to be aware of when setting up a CLC Assembly Cell command include e For programs where there are choices between fasta and fastq as output formats the format that is output is determined based on the filename you specify in the command For example for the clc_remove_duplicates program if you provide an output filename ending in fq or fastq then the output format will be fastq Otherwise it will be fasta Any program with this sort of behaviour should include information about the convention used in the usage information produced by running the command without any arguments e When providing paired data in two files where one file contains one member of a pair and the other file contains the other member of a pair you must include the i flag in front of each input file More information is provided about this later in this chapter when paired data input is discussed as well as in the chapters on read mappings and de novo assembly e When providing information about sequences such as fragment lengths also referred to as distances for paired data the parameter values you enter will apply to all read files after that point in the command until the point in the command where new parameter values are provided This is discussed further in the chapters on read map
25. scaffolding e NO DATA No or very few reads were mapped as paired reads e NOT_ENOUGH_DATA Not enough reads were mapped as paired reads to give a reliable distance estimate e NEGATIVE_DISTANCE The distance interval was in the negative range which is usually caused by either wrong orientation of the reads or paired end contamination in a mate pair data set e AMBIGIOUS DISTANCE Several possible distance intervals were detected but there was not enough data to select the correct one e WRONG_DIRECTION The orientation of the reads was not set correctly Only distance estimates with the DISTANCE_ESTIMATED status code is used for the assembly In general we do not recommend that the automatic paired distance estimation is used on mate pair reads where the expected distance is larger than 10Kbp as the distance estimate will often either fail or be inaccurate 5 1 3 Optimization of the graph using paired reads When paired reads are available we can use the paired information to resolve large repeat regions that are not spanned by individual reads but are spanned by read pairs Given a set of paired reads that align to two nodes connected by a repeat region the repeat region may be resolved for those nodes if we can find a path connecting the nodes with a length corresponding to the paired read distance However such a path must be supported by a minimum of four sets of paired reads before the repeat is resolved If it s not possible to re
26. the same reference sequence files in the same order to join them Options for clc_join_mappings can be found in Appendix B 7 6 The clc_submapping Program The clc_submapping program allows the user to make a new mapping containing only part of the original maping Options for clc_submapping can be found in Appendix B 7 6 1 Specifying Mapping Files The a options specifies the input assembly and the o option specifies the output assembly CHAPTER 7 ASSEMBLY POST PROCESSING TOOLS 55 7 6 2 Extracting a Subset of Reference Sequences The s option is used for making a new mapping with only matches to a single reference sequence The d option makes a new mapping with only matches to the reference sequences of a single file The sequence or file must be specified as its number in the list of reference sequences or files in the input You can use clc_mapping_info to see the contents of the input mappings is needed These options are useful when working with a large mappings such as the human genome Extracting sub mappings for each chromosome may make it easier to work with 7 6 3 Extracting a Part of a Single Reference Sequence If a single reference sequence is specified using the s option or if the input mapping contains only a single reference sequence the b option may be used to specify a position range to extract The output mapping will then only contain matches to this specific region I
27. their original location no longer exist or if you are certain you are working with the correct data files and wish to skip this check you can use the n flag For the clc _change _cas _paths command to succeed you must provide the new loca tions of the data in the same order as they were used when creating the cas file originally If you do not already know what this order is then you can find out by running the clc _mapping _info program on the cas file Providing the s flag to that tool skips checks of the contigs and thus can save some time here clc_mapping_info s myassembly cas The order of the reads and reference files listed in that output is the same order they should be provided to the clc _change _cas _paths tool Generally speaking it is a good idea to use different file names for the input cas file and the output cas file so the original is retained as backup However changes can be made in place if 52 CHAPTER 7 ASSEMBLY POST PROCESSING TOOLS 53 the same cas file name is used for both the input and output For a full list of parameters please refer to Appendix B 7 2 The clc_filter_matches Program The clc_filter_matches program removes matches of low similarity from a cas file The limits for low similarity are expressed as a minimum sequence similarity required over a minimum fraction of the read length These parameters are set using the s and l options respectively The limits work just like
28. when it identifies duplicate reads Specifically reads are considered duplicates if e they share a common sequence of at least 20 bases in the beginning or at any of four other regions distributed evenly across the read and e the rest of the read has an alignment score above 80 of the optimal score where the optimal score is what a read would get if it aligned perfectly to the consensus for a group of duplicates Please note that these thresholds for similarity are not enough for reads to be marked as duplicates they just define how different reads are allowed to be and still be considered duplicates Rather the duplicates are identified as explained in section 8 3 1 8 3 3 Paired data For paired reads we check whether the sequences in different pairs mapping in a given region have their first 10 base pairs identical If they do they are marked as potential duplicate reads We have found this route works better than a statistical route in the case of paired data We then check our proposed list of duplicates to look for false positives We also do a check for closely related variants of those sequences we now believe to represent duplicate reads The algorithm also takes sequencing errors into account when filtering out paired data 8 3 4 Known limitations The duplicate read removal has a limitation when there are duplicate reads that contain several alleles The algorithm will identify if there are duplicate reads to be remo
29. you have trimmed for quality then reads that are in fact duplicates will likely end up with different start points and thus the tool may miss identifying them Also note that duplicate reads is rarely a problem when performing a de novo assembly of NGS reads It is strongly recommended that this tool is only used when there is a strong suspicion that duplicate reads are affecting the quality of a de novo assembly One of the main reasons for this recommendation is that NGS reads often contain leftover adapters and sequencing artifacts that can cause a massive increase in both memory and time consumption of this tool Running this tool may therefore produce more problems in an assembly pipeline than it solves and it is therefore not recommended to use the tool as a fixed step in assembly pipelines CHAPTER 8 SEQUENCE PREPARATION TOOLS 61 8 3 1 Looking for neighbors An example of a read duplication can be easily distinguished when mapping reads to a reference sequence as shown in figure 8 1 Figure 8 1 Mapped reads with a set of duplicate reads the colors denote the strand green is forward and red is reverse The typical signature is a lot of reads starting at the same position resulting in a sudden rise in coverage and all reads have the same orientation denoted by the color In a normal data set you will also see fluctuations in coverage as shown in figure 8 2 but they lack the two important features of duplicate reads they do
30. 009 Li et al 2010 Gnerre et al 2011 The basic idea is to make a table of all sub sequences of a certain length called words found in the reads The words are relatively short e g about 20 for small data sets and 27 for a large data set the word size is determined automatically see explanation below Given a word in the table we can look up all the potential neighboring words in all the examples here word of length 16 are used as shown in figure 5 1 Typically only one of the backward neighbors and one of the forward neighbors will be present in the table A graph can then be made where each node is a word that is present in the table and edges connect nodes that are neighbors This is called a de Bruijn graph For genomic regions without repeats or sequencing errors we get long linear stretches of connected nodes We may choose to reduce such stretches of nodes with only one backward CHAPTER 5 DE NOVO ASSEMBLY 29 Backward neighbors Starting word Forward neighbors AACGTAGCTAGCGCAT CGTAGCTAGCGCATGA CACGTAGCTAGCGCAT CGTAGCTAGCGCATGC ACGTAGCTAGCGCATG GACGTAGCTAGCGCAT CGTAGCTAGCGCATGG TACGTAGCTAGCGCAT CGTAGCTAGCGCATGT Figure 5 1 The word in the middle is 16 bases long and it shares the 15 first bases with the backward neighboring word and the last 15 bases with the forward neighboring word and one forward neighbor into nodes representing sub sequences longer than the initial words Figure 5 2 shows an example where
31. N s corresponding to the gap size That is the output of this program is identical with the default output of the de novo assembler Further details can be found in Appendix B Chapter 8 Sequence preparation tools 8 1 The clc_adapter_trim Program Trims adapters from sequences Many sequencing technologies may leave whole or partial adapter or linker sequences in the reads for various reasons The clc_adapter_trim program is used to find and remove such adapters from the reads The clc_adapter_trim tool identifies likely adapters in reads and removes them To account for sequencing errors known adapter sequence are aligned with each read Matching positions in these alignments score 1 while each mismatch costs 2 and each gap costs 3 By default a region that aligns with a score of at least 10 is considered a possible adapter region The c option can be used to change the default score threshold of 10 By default the clc_adapter_trim tool trims bases towards the 3 end of reads using the following approach e For any read with only one region scoring equal to or higher than 10 that region is considered the be an adapter The adapter region and all bases towards the 3 end are removed e For any read where there is no alignment to a known adapter sequence scoring 10 or greater the 3 end of the read is checked for any possible sign of adapter If found such bases will be removed For example if a single nucleotide at the end
32. Other options cpus lt n gt Specify the maximum number of cpus that should be used by the assembly process If not set explicitly the process assumes it has access to as much of your computer s cpus as it needs Ves verbose This option specifies that verbose reporting should be turned on This results in various information being written to the terminal when the process is running include the word size used if you have chosen to allow that to be determined by the assembly program 5 5 5 Example commands The command below is a mixed assembly where a set of paired reads available in two files with one member of each pair in each file is used for all stages of the assembly and a set of CHAPTER 5 DE NOVO ASSEMBLY 45 454 data is used for guidance only The output file containing the fasta formatted assembled contigs will be called myContigs fasta Note the use of the p no before the non paired 454 data This ensures that the assembler knows that the data about to be entered are not paired It effectively overwrites the earlier p information provided earlier in the command clc_assembler o myContigs fasta p fb ss 200 400 q i pairedRead member1 fastqa pairedRead member2 fastq g ignor p no q 454read sff The above command is equivalent to clc_assembler o myContigs fasta g ignore p no q 454read sff g use p fb ss 200 400 q i pairedRead memberl fastq pairedRead member2 fastq Examples of undesirable
33. See Appendix B for full usage information 8 5 The clc_sort_pairs Program The clc_sort_pairs program takes two SOLID read files or two lon Torrent read files as input and generates as output a file containing paired reads and a file containing unpaired reads Here the read names are used to sort the reads This tool is necessary because pairing of the reads in these cases is based on the read names rather than just the position within the file as would be the case for Illumina data That is paired reads for these data types need to be sorted and paired reads separated from single reads To properly handle the input sequence data the read names within the files must match certain patterns These are lon Torrent anytextinfo number number Solid number _ number _ number _ R3 F3 F5 F5 P2 F5 BC In the case of Solid data reads in one file of the pair should end in one of the patterns above and reads in the other file of the pair should end with one of the other patterns For example one file might contain reads with names ending in R3 while reads in the other file have names CHAPTER 8 SEQUENCE PREPARATION TOOLS 64 ending in F5 or reads in one file might contain names ending in F3 while reads in the other file have names ending in F5 and so on Reads within a given file must be named consistently That is if a read has a name ending with a particular pattern for example F5 then all reads in that file must have names
34. ad Considerations You can specify that a read file came from a paired sequencing experiment using the p option This option is described in detail here as well as within the read mapping and de novo assembly sections of the manual A typical set of information one would provide after the p flag would look like this p fb ss 100 200 The meaning of this would be e fb Specifies the relative orientation of the reads Here the first read of the pair is in the forward direction the second read is in the backward or reverse orientation The allowed values for this are provided below e ss Specifies the way the distances between the pair members should be measured Here the distances are given from the start 5 prime end of the first read to the start 5 prime end of the second read Here since the relative orientation is set to fb the second read is reversed so indicating ss means that the distance specified will include both the read lengths as well as the length of the sequence between the reads e 100 200 The range of distances expected between the specified start positions Here this is between 100 and 200 bases 1Sequence Alignment Map format 2BAM is the binary compact format for SAM CHAPTER 3 THE BASICS 20 3 4 1 Relative orientation of the reads For all codes it is possible to assemble the pair to any of the two reference sequence strands so ff may mean that both reads are placed in the forward direct
35. and SOAPdenovo Li et al 2010 The advantages are e clc_assembler does not use as much RAM as other programs e clc_assembler program is quite fast e clc_assembler readily uses data from mixed sequencing platforms Sanger 454 Illumina SOLiD etc The reason that we are able to use little RAM compared to other programs is that we have a very strong focus on keeping the data structures very compact When appropriate we also use the hard drive for temporary data rather than using RAM The speed of the assembly program has been achieved by threading many parts of the program to use all available CPU cores Also some parts of the program are done using assembler code including SIMD vector instructions to get the optimal performance 5 4 SOLID data support in de novo assembly SOLID sequencing is done in color space When viewed in nucleotide space this means that a single sequencing error changes the remainder of the read An example read is shown in figure 1See how SOLID is supported in section 5 4 CHAPTER 5 DE NOVO ASSEMBLY 41 5 19 0000000000000000000000000000070000000000000700000 Without errors CCAACATCCTAGAGATCCGCCTCTTAGCGGATATAATACAGCCGAAATTG With an error CCAACATCCTAGAGATCCGCAGAGGCTATTCGCGCCGCACTAATCCCGGT Se Figure 5 19 How an error in color space leads to a phase shift and subsequent problems for the rest of the read sequence Basically this color error means that C s become A s and A s become
36. andomness in the results ss ss ss oam on bee ee dan no bee ee eS 40 5 3 Specific characteristics of CLC bio s algorithm 40 5 4 SOLID data support in de novo assembly 40 5 5 Command Me OOUONS o te 8 2 wre oe aa o rere aoe ee ks ee Se d E 41 5 5 1 Specifying the data for the assembly and how it should be used 41 5 5 2 Specifying information for the assembly 43 5 5 3 Specifying information about the outputs 44 eat DINSFODUIOAS a x 202 Sik God AR rires Rede apes e See eae 44 6 5 5 Example COMMANOS lt sss x new da Kaakaa eR A 44 6 Reporting tools 46 6 1 The cle Sequence Info Program oros eoe ao haben Pe eee Re 46 6 2 The cle mapping table Program 2 22 4 8 58 Bee eR da none a ee 47 6 3 Meci Mapping nto Progra sos scs sta ace ee e eR OR Gee 49 7 Assembly post processing tools 52 7 4 Th cle change cas paths Program 2 ss sso a wew Oe ee ASO A ee 52 7 2 The clic filter matches Program 53 7 3 The clc_extract_ consensus Program 53 7 4 The clc_find_variations Program 54 7 9 Whe cle join mappings Programi gt acs s s osa sou a rer a Se a 54 1 6 The ci submapping Pragrany lt e 3 4 214006 o os o a a ee a d 54 CONTENTS 6 7 6 1 Specifying Mapping Files 54 7 6 2 Extracting a Subset of Reference Sequences
37. ank The full sequence of any read containing one or more symbols present in a csfasta format file will be converted to contain only N characters when used by or output by any of the Assembly Cell tools Please note that paired 454 data needs to be pre processed using the clc_split_reads program Read and reference data compressed using gzip is supported as input by the CLC Assembly Cell programs except for clc_remove_duplicates and clc_mapper_legacy Single reference sequences longer than 2gb 2 10 bases and reads longer than 100 000 bases are not supported 3 3 Cas File Format CLC Assembly Cell uses the cas file format for read mappings It is a custom file format that caters to the demands of high throughput sequencing data while being flexible enough to handle CHAPTER 3 THE BASICS 18 other sequence data types also No deep knowledge of this file format is necessary to work with it but some basics can aid in understanding what this format contains and how it can be used 3 3 1 Cas Format Basics The cas format is a binary format This is space efficient taking only approximately 8 bytes per read assembled to the human genome So a cas file with 100 million Solexa reads each with a length of 35 bases assembled to the human genome would only take up about 800 MB 3 3 2 What a cas file contains In essence cas format files contain data about the relationships between sequences in other files
38. at were not part of the expected reference sequences used in a previous mapping Sometimes performing de novo assembly on these unmapped reads may be useful to determine their source It could for example be mitochondrial DNA or vector sequence contamination See Appendix B for further details CHAPTER 7 ASSEMBLY POST PROCESSING TOOLS 57 7 8 The clc_unpaired_reads Program Create a file containing the reads that mapped but where the read pair did not meet the requirements to be considered an intact pair within the mapping Reasons for failing to be considered an intact pair include e reads of the pair mapped with incorrect relative orientations e reads of the pair mapped at a distance outside the expected range e reads of the pair mapped to different reference sequences e one of the two reads of the pair did not map to any of the references Further details can be found in Appendix B 7 9 The clc_agp_join Program When using the f option in the de novo assembler for outputting scaffold annotations in AGP format scaffolded contigs are output as individual contigs and not as a single scaffold with N s inserted in between contigs The AGP file which is generated contain information on scaffolded contigs and the size of gaps that separate contigs in a scaffold This program takes a list of contigs and an AGP file as input and output a list of contigs where each contig represents a scaffold where contigs are separated with a number of
39. aximum read length or more Please keep in mind that increasing the bubble size also increases the chance of misassemblies 5 1 6 Converting the graph to contig sequences The output of the assembly is not a graph but a list of contig sequences When all the previous optimization and scaffolding steps have been performed a contig sequence will be produced for every non ambiguous path in the graph If the path cannot be fully resolved Ns are inserted as an estimation of the distance between two nodes as explained in section 5 1 3 5 1 7 Summary So in summary the de novo assembly algorithm goes through these stages e Make a table of the words seen in the reads e Build a de Bruijn graph from the word table e Use the reads to resolve the repeats in the graph e Use the information from paired reads to resolve larger repeats and perform scaffolding if necessary e Output resulting contigs based on the paths optionally including annotations from the scaffolding step These stages are all performed by the assembler program CHAPTER 5 DE NOVO ASSEMBLY 40 5 2 Randomness in the results Different runs of the de novo assembler can result in slightly different results This is caused by multi threading of the program combined with the use of probabilistic data structures If you were to run the assembler using a single thread the effect would not be observed That is the same results would be produced in every run However an assemb
40. bubble will only be words seen a single time On the other hand if this was a heterozygous SNP we would see both paths represented more or less equally Thus having information about how many times this particular word is seen in all the reads is very useful and this information is stored in the initial word table together with the words The most difficult problem for de novo assembly is repeats Repeat regions in large genomes often get very complex a repeat may be found thousands of times and part of one repeat may also be part of another repeat Sometimes a repeat is longer than the read length or the paired distance when pairs are available and then it becomes impossible to resolve the repeat This is simply because there is no information available about how to connect the nodes before the repeat to the nodes after the repeat CHAPTER 5 DE NOVO ASSEMBLY 30 In the simple example if we have a repeat sequence that is present twice in the genome we would get a graph as shown in figure 5 5 CACCGCTGGTTGCCAGTCCCATCGTTC _7 TCGGATCAGGGATTCCGTTTATCGGGG _7 CCAGTCCCATCGTTCGGATCAGGGATTC GTACACCTCCATCCAGTCCCATCGTTC TCGGATCAGGGATTCTCCGTCGGAGGC Figure 5 5 The central node represents the repeat region that is represented twice in the genome The neighboring nodes represent the flanking regions of this repeat in the genome Note that this repeat is 57 nucleotides long the length of the sub sequence in the central node above plus regions
41. censes please ensure you have your License Order ID available preferably in a form you can copy and paste before embarking on the instructions in this section If you have not previously done so you can download a 15 day evaluation license using the same license tool that is used to download purchased licenses These instructions assume that the machine you have installed CLC Assembly Cell on is connected to the network and can access outside sites If this is not the case please see the section below 2 4 1 Licensing the software on a networked Linux or Mac machine 1 On the command line run the cle_cell_licutil tool that you will find inside the installation directory of CLC Assembly Cell You will need to run this tool as a user that has permissions to write the license file that is downloaded into the licenses folder in the installation directory of CLC Assembly Cell If your software is installed centrally this may mean running the tool with sudo 2 You will be prompted as to whether you wish to Request an evaluation license or Download license using a License Order ID For an evaluation license just choose that option As long as you have not previously trialled the software on your machine the evaluation license should be downloaded You will see a message printed to screen about the expiry date of the evaluation license and where the license was downloaded to You should now be able to trial the software 3 If you have a L
42. dapter sequences will not be included in the result Further details of the overlap reads options are provided in Appendix B LE gt _IA gt 5IO IIIM ki _ _ _o _ _ ___ Hu Fragment MAA Adapter Figure 8 3 Illustration of two reads originating from a fragment which is shorter than the read length Both reads contain adapter sequences in the read ends which needs to be removed when overlapping the reads Chapter 9 Format conversion tools 9 1 The clc_cas_to_sam Program This tool converts a cas format file to sam or bam format format file The clc_cas_to_sam program takes a cas file as input and produces a corresponding SAM file or BAM file The format generated depends on the filename you choose If you choose an output file name with the suffix sam the output format will be SAM If you choose an output file name with the suffix bam the output format will be BAM Please note that the read file s that you used in generating the cas file must be present in the same relative location to the cas file as they were when you ran the mapping This is because unlike cas format files SAM and BAM files include all the read data Thus the read data needs to be present in order to make a valid SAM or BAM file This also means that the SAM or BAM files created will generally be substantially larger than the cas file they were generated from When writing a sam bam file each read is given a read mapping quality MAPQ score of ei
43. ds of locations Keeping track of all such alignments would be problematic CHAPTER 3 THE BASICS 19 2 If you are planning to send your assembly to someone else for viewing or further processing you need to include your read and reference files in addition to the cas assembly file This is because the cas file contains information about the assembly and does not contain any sequence information 3 If you are planning to send your assembly to someone else they must put the read and reference files in the same relative location to the cas file as you did when you ran the assembly This is because the cas file stores relative file names and these must match the location of the read and reference files when further processing is undertaken Please note though that the program change_assembly_files can be used to change the file names and locations 4 If you plan to convert your cas file to SAM or BAM format which include read information you need to have the read data used for your mapping as well as the cas file available when you run the clc_cas_to_sam program 3 3 5 Converting to and from SAM and BAM formats CLC Assembly Cell includes a tool called clc_cas_to_sam to convert a cas format file to the SAM or BAM format Also included is a tool called clc_sam_to_cas that converts from SAM or BAM format into the cas format These tools are described in more detail in their own sections section 9 1 and section 9 2 3 4 Paired re
44. e end of a read and by overlapping the ends of two reads the consensus read now reflects two read ends instead of just one This joining of overlapping reads can be done using the clc_overlap_reads program It aligns the ends of each read within pairs to see if there is evidence that they overlap If the alignment of these read ends is relatively good the reads are joined into one read and put in an output file for single joint reads If there is no evidence of the reads overlapping the original pair of reads is put in an output file for paired reads The nucleotides in the overlapping region of a joint read are assigned a quality score of 40 very high quality if the two reads agree on the nucleotide Otherwise the nucleotide with the highest quality is chosen and its quality score is retained By default the alignment between the ends of two reads must have a minimum length of 10 positions and a minimum similarity of 90 for the reads to be considered overlapping These parameters can be adjusted using the various options for the program The default is that the first read of each pair is a forward read and the other one is a backward read This can also be adjusted CHAPTER 8 SEQUENCE PREPARATION TOOLS 66 In cases where reads contain an adapter sequence at the read ends the adapter sequence needs to be removed see figure 8 3 The option autoadapter enables free gaps at the read ends and leaves out unaligned read ends i e any a
45. ead is passing through these edges An average of reads going through an edge is calculated avg k1 c1 and then the process is repeated using only those edges which have more than or equal avg reads going though it Let cg be the number of edges which meet this requirement and kz the number of reads passing through these edges A second average avg2 k2 c2 is used to calculate a limit _ log avg2 avg2 2 40 and each edge connected to the node which has less than or equal limit number of reads passing through it will be removed in this phase limit Remove dead ends Some read errors might occur more often than expected either by chance or because they are systematic sequencing errors These are not removed by the Remove weak edges phase and will cause dead ends to occur in the graph which are short paths in the graph that terminate after a few nodes Furthermore the Remove weak edges sometimes only removes a part of the graph which will also leave dead ends behind Dead ends are identified by searching for paths in the graph where there exits an alternative path containing four times more nucleotides All nodes in such paths are then removed in this step Resolve repeats without conflicts Repeats and other shared regions between the reads lead to ambiguities in the graph These must be resolved otherwise the region will be output as multiple contigs one for each node in the region The algorithm for resolving repeats witho
46. ed distances between members of the pair Options after the p flag are also used to indicate if paired data are in two files and also whether any particular data should be used only for its paired distance information during the final phase of the assembly Paired status Data are assumed to be paired by default To indicate that the data contain single reads that is that the data are not paired the single string value no is given l e p no followed by the name of the read file Paired information For paired data par consists of four strings lt mode gt lt distance_mode gt lt min_dist gt lt max_dist gt mode indicates the relative orientation of the reads in a pair set These can be ff fb bf or bb These are used for forward forward reads forward reverse reads reverse forward reads and reverse reverse reads distance_mode indicates the point on paired reads from which the distance measure you provide is taken The options are ss se es or ee These mean start start start end reads end start reads and end end lt min_dist gt and lt max_dist gt give the minimum and maximum distance range for the distances between the pairs Where to take the start and end points of this distance range is what is specified by the distance_mode described above So p fb ss 180 250 would indicate that the reads are inverted and pointing towards each other that the distance range includes the sequences of both the reads
47. erence clc_mapper d human idx Note that the size of the index both on disk and in memory is comparable to the cumulative size of the reference sequences in FASTA format It typically uses slightly less than one byte per base For example a human index needs around 2 8 gigabytes of space 1FASTO is also supported 22 CHAPTER 4 READ MAPPING 23 4 2 Reads The read mapper supports mapping both single and paired reads Reads are typically provided in the form of one or more FASTA or FASTQ files that are passed to the mapper using the q reads parameter 4 2 1 Single reads In the case of single reads you simply list the files after the q reads parameter clc_mapper q single_reads fastq more_single_reads fasta 4 2 2 Paired reads Paired reads often come split across two files one containing the first mates paired_1 fa gt SLXA EAS1_89 1 1 672 654 1 GCTACGGAATAAAACCAGGAACAACAGACCCAGCA gt SLXA EAS1 89 1 1 657 649 1 GCAGAAAATGGGAGTGAAAATCTCCGATGAGCAGC gt SLXA EAS1 89 1 1 708 653 1 GAGAGAGCAGTGGGCGAGGTTGGGACATGTCATGA and one containing the second mates paired_2 fa gt SLXA EAS1_89 1 1 672 654 2 ATTAACAACAAAGGGTAAAAGGCATCATGGCTTCA gt SLXA EAS1_89 1 1 657 649 2 TGATGCGACGACGCACCTCGTTGTTACGCACTTCA gt SLXA EAS1_89 1 1 708 653 2 CTGTGGATAACATGGTGTAAGATCCTGTTTATTTT Use the p paired parameter to indicate that the following files contain paired reads of a
48. ervals to be used for estimating the distances differ only by a factor of two in the number of pairs they contain e The best interval suggests a negative average distance for the paired reads in a dataset e More than half the reads have the wrong relative orientation e The best interval contains less than 1 of the mapped reads in that dataset If it is not possible to estimate an accurate distance from the data for any particular paired read set then the original paired distance entered as part of the parameter settings associated with the p flag will be used Errors and warnings associated with such situations will be written to the file specified with the e parameter 5 5 3 Specifying information about the outputs o lt file gt output lt file gt Give the name for the file that will contain the contigs in fasta format that are assembled This parameter is required m lt n gt min length lt n gt Set the minimum length for contigs to be output from the assembly process The default value is 200 bases f lt file gt feature_output lt file gt Providing this option indicates that the annotations associated with scaffolding should be output The output can be in GFF format the default or in AGP format The file suffix you provide specifies the output format For AGP format use agp For gff format you can use whatever name you like but it would be usual to use the filename suffix gff 5 5 4
49. f a match is partially located in the region only the part of the match inside the region is kept This option is useful for studying a particular section of a long reference sequence It could for example be a single gene in the whole human genome 7 6 4 Extracting Only Long Contigs Useful for De Novo Assembly If you map reads against contigs created by de novo assembly it can be useful to extract the mappings of the longest contigs only This can be done using the r specifying the minimum length of the reference sequence 7 6 5 Extracting a Subset of Read Sequences Using the q option you can make a mapping file with only the reads from one of the read files The read file is specified by its number in the input mapping file If reads are interleaved the output file will refer to the two interleaved files instead of just one file This is for example useful if you wish to study how the reads from a particular experiment behaved although the full mapping contains reads from several experiments 7 6 6 Other Match Restrictions The u option ensures that only uniquely placed matches are kept The I option specifies a minimum length of a read sequence that must be part of its match alignment for it to be kept Mismatches within the alignment does not affect the length measurement 7 6 7 Output Reference File By default the output mapping refers to one or all of the reference files in the input cas file I
50. f these histograms are then used to estimate paired distances as described in the following 1 We denote the average number of observations in the histogram Havg At where H d is the number of observations reads with distance d and H is the number of bins in H The gradient of H at distance d is denoted H d The following algorithm is then used to compute a distance interval for each histogram e Identify peaks in H as maxj lt a lt H d where i j is any interval in H where H d gt a lt d lt j e For the two largest peaks found expand the respective intervals i 7 to k where H k lt 0 001 A k lt i A H l gt 0 001 A j lt L l e we search for a point in both directions where the number of observations becomes stable window of size 5 is used to calculate H in this step e Compute the total number of observations in each of the two expanded intervals e If only one peak was found the corresponding interval k l is used as the distance estimate unless the peak was at a negative distance in which case no distance estimate is calculated e If two peaks were found and the interval k l for the largest peak contains less than 1 of all observations the distance is not estimated e If two peaks were found and the interval k l for the largest peak contain lt 2X observations compared to the smaller peak the distance estimate is only computed if one peak was at a positive distance and the other
51. file form for paired data as the default For paired data with separate files for first and second members of the pair both files need to be included as input with each of these files being preceeded by the option for interleave The order of the files on the command line matters The first file should contain the first member of the pair The second file should contain the second member of the pair To further illustrate this consider a situation where we have two fasta files like this first fasta gt pair_1 1 ACTGTCTAGCTACTGCATTGACTGCGAC gt pair_2 1 TAGCGACGATGCTACTACTCTACTCGAC gt pair_3 1 GATCTCTAGGACTACGCTACGAGCCTCA and this second fasta gt pair_1 2 GGATCATCTACGTCATCGACTAGTACAC gt pair_2 2 AAGCGACACCTACTCATCGATCATCAGA gt pair_3 2 TATCGACTCAGACACTCTATACTACCAT where pair_1 1 and pair_1 2 belong together pair_2 1 and pair_2 2 belong together etc The programs expect to see these sequences as one fasta file like this joint fasta gt pair_1 1 ACTGTCTAGCTACTGCATTGACTGCGAC gt pair_1 2 GGATCATCTACGTCATCGACTAGTACAC gt pair_2 1 TAGCGACGATGCTACTACTCTACTCGAC gt A gt G gt pair_2 2 AGCGACACCTACTCATCGATCATCAGA pair 3 1 CTCTAGGACTACGCTACGAGCCTCA pair_3 2 TATCGACTCAGACACTCTATACTACCAT D This is accomplished using the i option like this clc_mapper o assembly cas d human gb q p fb ss 180 250 i first fasta second fasta T
52. for clc_ref_assemble_long For paired reads if only one read fails to pass the filter criteria only this one read is removed by default Use the p option to only include paired reads in the output in such cases For further details see Appendix B 7 3 The clc_extract_consensus Program This program makes it possible to extract a consensus sequence from a read mapping It operates on a cas file produced by the reference assembly programs The clc_extract_consensus program makes a consensus sequence file containing all the original data but with changes made to the references to reflect the information recovered by the read mapping The program can furthermore be run such that it outputs a list of regions in the reference with zero coverage in the read mapping The following options control how the consensus sequence is constructed The r option determines how conflicts between reads should be resolved in the consensus sequence The default is a simple vote the majority of the read bases determine the consensus base but it is also possible to output ambiguity characters this will cause Sequencing errors to be reflected in the consensus sequence or to report the positions as containing unknown bases using N s The c option can be used to specify the minimum coverage that will make a difference with respect to the reference valid and report it The default for this option is 2 The zz option controls how positions with zero cove
53. fore the name of a read set indicates that this read set and all others after this point in the command until any point where the g use option is entered in the command is not used in the first step of the assembly as described above where fragments are generated from the reads In other words read sets following g ignore in the command are used in steps 2 3 and 4 as listed above where the graph is determined and optimized n no scaffolding Pair distance information is used for the creation of contig se quences but no scaffolding i e making associations between contigs is performed q reads This flag indicates that the information that follows are read filenames Read files can be in fasta fastq or sff format i lt filel gt lt file2 gt interleave lt filel gt lt file2 gt To input paired read data that is in two files where one read of each pair is in one file and the other of each pair is in the second file the pair of file names should be provided after the i flag Read files for paired data entered without the i flag are assumed to contain interleaved pairs That is the first sequence is the first member of a pair the second sequence is the second member of that same pair the third sequence is the first member of the second pair the fourth sequence is the second member of the second pair and so on Mixed files that is single input files that contain both paired and unpaired reads canno
54. gical events and technical errors Since technical errors are typically much more likely to occur than true genetic variation you should set your costs according to what you expect to see in the raw reads rather than which biological events you expect to be present in the sample itself 4 3 1 Match score Matches are always scored with 1 4 3 2 Mismatch cost The x mismatchcost parameter determines the cost incurred when a mismatch is accepted default is 2 4 3 3 Linear gap cost If each base inserted or deleted is taxed independently we have what is known as a linear gap cost model because the total cost of a gap c A is proportional to the length of the gap eX g where the cost per base g is set using the g gapcost parameter By default it is set to 3 but you may want to lower that if you are mapping data from sequencing technology that is prone to produce gaps such as lon Torrent PacBio or Oxford Nanopore If you would like to set the insertion and deletion costs differently you can do so using a combination of the g gapcost and the e deletioncost parameters The g gapcost parameter sets both the insertion and the deletion cost while the e deletioncost sets deletion cost only For example if you would like to set inser tion cost to 1 and the deletion cost to 3 you would do the following CHAPTER 4 READ MAPPING 25 clc_mapper g 1 e 3 i e first set both the deletion and insert
55. h a score of 35 alignment 3 15594 CGGCCCCGGGGGGATGTCATTACGTGAAGTCACTG 15628 coli Pr e rre EP TEEN CGGCCCCGGGGGGATGTCATTACGTGAAGTCACTG reverse read SLXA EAS1_89 1 1 307 821 2 has 3 paired matches with a score of 35 alignment 1 2512322 GGTATTACGCCTGATATGATTTAACGTGCCGATGA 2512356 coli Pere rre ETP P EPP Prt GGTATTACGCCTGATATGATTTAACGTGCCGATGA read Options for the clc_mapping_table are described in Appendix B 6 3 The clc_mapping_info Program Whereas clc_mapping_table outputs detailed information about individual matches the clc_mapping_info program instead gives an overview General info Program name Program version clc_mapper 1 00 31043 CHAPTER 6 REPORTING TOOLS Program parameters o tmp cas d data paired fasta q data paired_reads fasta m Contig files data paired fasta Read files data paired_reads fasta Read info Contigs Reads Unassembled reads Assembled reads Multi hit reads Alignment info Number of inserts Number of deletes Number of mismatches Coverage info Total sites Average coverag Sites covered 0 times Sites covered 1 time Sites covered 2 times Sites covered 3 times Contig info Contig Sites Reads 1 100000 106914 It is possible to make an analysis of paired distances using the clc_mapping_info program This is done with the standard p option and results in an output like this Paired reads info Pairs Average distance 99 9
56. his is identical to clc_mapper o assembly cas d human gb q p fb ss 180 250 joint fasta Note that the option has to immediately proceed the input files Chapter 4 Read Mapping The read mapper clc_mapper maps a list of sequencing reads to a set of reference sequences collectively referred to as the reference genome For each sequencing read it reports the location s in the reference genome where that read is most likely to have originated from subject to several alignment parameters described below 4 1 References and indexes The read mapper supports mapping against a mixture of linear and circular reference sequences Reference sequences are typically provided in the form of one or more FASTA files that can be passed to the mapper using the d references parameter Files containing sequences to be interpreted as circular must be individually prefixed with the z circular parameter clc_mapper d linear fa z circular fa linear_again fa Internally the provided sequences are converted into a reference index allowing the read mapper to efficiently search and navigate them If you find yourself working repeatedly with the same large genomes such as human you can save a lot of time by writing the index to disk using the n indexoutput parameter eg clc_mapper d chrl fa chr2 fa chrY fa z mito fa n human idx The next time you need to use that human reference simply provide it as a ref
57. icense Order ID please copy it and then paste it in at the prompt After a few moments your license should be downloaded and a message will be written to screen saying that it was successfully downloaded and where it was saved 2 4 2 Licensing the software on a networked Windows machine 1 Go to the Windows start menu and in the search box type cmd 2 Click on the cmd exe tool which will launch the windows command prompt You need to run this as a user that has permissions to write the license file that is downloaded into the licenses folder in the installation directory of the CLC Assembly Cell If your software is installed centrally this will likely mean right clicking on the cmd exe option and choosing to Run as administrator 3 Navigate to the installation folder of the CLC Assembly Cell and execute the cle_cell_licutil bat script 4 You will be prompted as to whether you wish to Request an evaluation license or Download license using a License Order ID CHAPTER 2 SYSTEM REQUIREMENTS AND INSTALLATION 14 For an evaluation license just choose that option As long as you have not previously trialled the software on your machine the evaluation license should be downloaded You will see a message printed to screen about the expiry date of the evaluation license and where the license was downloaded to You should now be able to trial the software 5 If you have a License Order ID please copy it and then paste it in at the p
58. ignments are chosen to be locally optimal i e the mapper looks for the highest scoring alignment of part of the read That is unaligned ends are not penalized in any way In global mode a global the mapper is forced to look for the highest scoring alignment of the entire read That is unaligned ends are no longer free Generally we recommend that you stick to local alignment as there are several reasons why you may not want to force the ends of a raw read sequence to align 1 Read quality deteriorates towards the end of a read So you may end up aligning noise 2 If present untrimmed adapter sequence cannot be aligned in any meaningful way 3 Structural variation may be present in the sample so the reference may not have corre sponding sequence for all of the read In general unaligned ends express a lack of confidence in a portion of the read information that can be very helpful for several common downstream analyses This is sometimes called semi global alignment because the alignment is global with respect to the read but remains local with respect to the reference CHAPTER 4 READ MAPPING 26 4 4 Reporting and filtering The resulting alignments are output to a single CAS file using the o output parameter clc_mapper d reference fa q reads fastq o result cas By default if there are multiple equally good alignments for a particular read the number of alignments is stored but detailed alig
59. imum limit 12 References 73 System requirements 12 74
60. into the neighboring nodes where the sequences are identical If the repeat had been shorter than 15 nucleotides it would not have shown up as a repeat at all since the word length is 16 This is an argument for using long words in the word table On the other hand the longer the word the more words from a read are affected by a sequencing error Also for each extra nucleotide in the words we get one less word from each read This is in particular an issue for very short reads For example if the read length is 35 we get 16 words out of each read if the word length is 20 If the word length is 25 we get only 11 words from each read To strike a balance CLC bio s de novo assembler chooses a word length based on the amount of input data the more data the longer the word length It is based on the following word size 12 0 bp 30000 bp word size 13 30001 bp 90002 bp word size 14 90003 bp 270008 bp word size 15 270009 bp 810026 bp word size 16 810027 bp 2430080 bp word size 17 2430081 bp 7290242 bp word size 18 7290243 bp 21870728 bp word size 19 21870729 bp 65612186 bp word size 20 65612187 bp 196836560 bp word size 21 196836561 bp 590509682 bp word size 22 590509683 bp 1771529048 bp word size 23 1771529049 bp 5314587146 bp word size 24 5314587147 bp 15943761440 bp word size 25 15943761441 bp 47831284322 bp word size 26 47831284323 bp 143493852968 bp word size 27 143493852969 bp 430481558906
61. ion cost to 1 and the set deletion cost back to 3 4 3 4 Affine gap cost If you believe that your data contains relatively few gaps though they may be quite long you can use the G gapopen parameter to introduce an additional penalty for opening the gap in the first place This would typically be used along with a low per base gap cost typically 1 In this scheme the total cost c A of a gap of length A is given by the following formula c A G g 4 1 where the open cost G and the extension cost g are specified using G and g respectively Note that the affine model reduces to the linear one when the open cost G is set to zero Using a combination of a relatively high open cost and a low extension per base gap cost indicates to the mapper that you expect few gaps but that these may be quite long You should be careful about using high open costs if you have lots of sequencing errors in the form of deletions or insertions as these may be penalized to the point where you get lots of long unaligned ends In such cases linear gap cost may be a better choice Like linear gap costs affine gap costs can be used asymmetrically This is done by independently setting the deletion open cost using the E deletionopen parameter 4 3 5 Alignment mode The mapper supports two different modes of alignment local default and global The alignment mode is set using the a alignmode parameter In local mode a local al
62. ion or that both reads are placed in the reverse direction There is still a difference between ff and bb though For bb the second read is effectively placed before the first read The bb option is not widely used and is included for the sake of completeness The allowed values for the directions and their meanings are summarized in the table below Read Code First Second Description ff gt gt Both reads are forward fb gt E Reads point toward each other bf gt Reads point away from each other bb Both reads are backward 3 4 2 Measuring the distance between the reads How the distance between the reads should be measured depends on how the sequencing experiment is done If the reads are sequenced in the upstream to downstream direction the start of the reads is where the distance should be measured This is indicated by the ss code for start to start The allowed values are ss se es and ee where the first letter indicates which end of the first read should be used and the second letter indicates which end of the second read should be used s for start and e for end The ss option is the most typical So for typical paired end Illumina sequencing protocol using the fo ss combination ensures the correct relative directions of the reads It also ensures that the distance is independent of the read length since typical sequencing expe
63. irs are located close together and on opposite strands Use the a option to get a very detailed output n and s are without effect here SLXA EAS1_89 1 1 622 715 1 has 1 match with a score of 35 480 481 482 483 484 485 CHAPTER 6 REPORTING TOOLS 48 89385 TTGC GTGGAAAATAG PELEEELE DA GAGTCA H AAAACGGT TGC SLXA EAS1_89 1 1 89577 AAAC AM AAAC SLXA EAS1_89 1 1 4829 ATCCAGGCGAA ATCCAGGCGAA SLXA EAS1_89 1 1 SLXA EAS1_89 1 1 38254 AGGGCAT AGGGCAT SLXA EAS1_89 1 1 GTGGAAAATAG GAGTCA HWH AAAACGGT CCTT CAGTGGGAAAT GTGGGGCAAAGTG LILIELIELI CCTT 201 524 CAGTGGGAAAT GTGGGGCAAAGTG ATGGC TGT Ill CC Pl CGGCACC eee 201 524 662 721 ATGGC TTT CCTCGGCACCCCG 2 has 0 matches CGA ACGG GGATAAGCTGAG GCC CGATACGG 662 721 2 38088 AC GAGTGA GAT AC SLXA EAS1_89 1 1 81872 GCAT I GCAT GAGTGA GAT 492 826 1 CCAGCAC PITTI CCAGCAC TCA II TCA CGCGAGCCACA PO A TE CGCGAGCCACA GGATAAGCTGAG GCC ACTG ACTC GGA LLI GGA GCGCC LELLI GGGTCA LILII CACTTC II GCGCC GGGTCATCACTTC 89419 622 715 2 has 1 match with a score of 89611
64. ithout any options 1 1 1 Core analysis tools De novo assembly and mapping reads to reference sequences form the core tools of CLC Assembly Cell These tools can be accessed using the following commands clc_assembler De novo assembly clc_read_mapping Used for mapping reads to a reference sequence clc_read_mapping_legacy The read mapper included in earlier versions of CLC Assembly Cell This tool is for mapping sequencing reads from the SOLID color space platform to a reference sequence The output of a de novo assembly is a set of contig sequences in fasta format The output of read mapping tools is a file in a special format called cas The file extension for this file is cas CHAPTER 1 INTRODUCTION 9 1 1 2 Reporting tools overview The following commands are available for reporting information about cas assembly files as well as contig data cle_ sequence _info Print overview of any sequence file clc_mapping_info Print overview of a mapping clc_mapping_table Print details of each read in a mapping 1 1 3 Assembly post processing tools Various operations can be performed on cas assembly files clc_change_cas_paths Change the references and or read file names in a mapping file clc_extract_consensus Extract a consensus sequence and get zero coverage regions clc_filter_matches Remove matches of low similarity clc_find_variations Find the positions where the reads differ from the reference sequences clc_join_map
65. ld be resolved in the consensus sequence The default is a simple vote the majority of the reads determine the consensus base but it is also possible to get ambiguity characters as well note that this will mean that sequencing errors will also reflect in the consensus sequence so it should be used with caution Using the w option the program will output a list of zero coverage regions in the assembly If you wish to see the reads matched to the new reference sequences a new round of reference assembly has to be performed The reason for this is that the changes to the references may significantly change the optimal locations of the reads in the changed regions So a complete new reference assembly is necessary Sometimes the new read alignments may suggest a few more changes to the reference sequences so another run of clc_find_variations may be in order There is also an option i that will ignore insertions and deletions completely This can be an advantage when looking for variations in data sets from sequencing platforms producing many indel sequencing errors See Appendix B for further details 7 5 The clc_join_mappings Program Using this program it is possible to join two or more cas mapping files into one It is sometimes convenient to perform read mappings on different sets of reads as independent runs These runs can then be joined later with the clc_join_mappings program It is a requirement that the mappings have exactly
66. ld refers to the estimated gap region between two contigs where Ns are inserted e Contigs joined refers to the join of two contigs connected by a repeat or another ambiguous CHAPTER 5 DE NOVO ASSEMBLY 37 structure in the graph which was resolved using paired reads Can also refer to overlapping contigs in a scaffold that were joined using an overlap e Alternatives excluded refers to the exclusion of a region in the graph using paired reads which resulted in a join of two contigs 5 1 4 AGP export The AGP annotations describe the components that an assembly consists of This format can be validated by the NCBI AGP validator If the exporter is executed on an assembly where the contigs have been updated using a read mapping the N s in some scaffolds might be resolved if you select the option Update contigs figure 5 13 Gx De Novo Assembly Select may options 1 Choose where to run Cee 2 Select sequencing reads 3 Select de novo options 4 Select mapping options Map reads back to contigs Create simple contig sequences fast Map reads back to contigs slow Mismatch cost 2 Insertion cost 3 Deletion cost 3 Length fraction 0 5 Similarity fraction 0 8 Global alignment Colorspace alignment V Update contigs E Create list of un mapped reads CEST Ceres Xena Figure 5 13 Select update contigs by ticking the box if you want to resolve scaffolds based on
67. ly run on a single thread would be very slow The assembler should run quickly Thus we use multiple threads to accelerate the program The main reason for the assembler producing different results in each run is that threads construct contigs in an order that is correlated with the thread execution order which we do not control The size and position of a contig can change dramatically if you start building a contig from two different starting points i e different words or k mers which means that different assembly runs can lead to different results depending on the order in which threads are executed Whether a contig is scaffolded with another contig can also be affected by the order that contigs are constructed In this case you could see quite large differences in the lengths of some contigs reported This will be particularly noticeable if you have an assembly with reasonably few contigs of great length We are working on addressing the fact that slightly different output is returned with different runs of the de novo assembler without appreciably affecting the speed of the assembler For the moment the output of runs may vary slightly but the overall information content of the assembly should not be markedly different between runs 5 3 Specific characteristics of CLC bio s algorithm There are some advantages and some disadvantages of CLC bio s algorithm when compared to other programs such as Velvet Zerbino and Birney 2008
68. mapper expects read one to pair with read two read three to pair with read four etc If one read out of a pair is removed with the clc_submapping program the paired read order is disrupted Because of this the p option should be used when the reads are from a paired experiment It works by retaining reads that do not match the clc_submapping criteria if the counterpart does match the criteria Without the p option the read file will contain no unassembled reads but with this option some reads may be unassembled because the other member of their pair is part of the assembly 7 6 9 Handling of non specific matches If an assembly contains non specific match reads and a sub mapping is made from it the non specific matches will still be marked as such even if there is only a single place they match in the chosen subset of the reference sequences The reason for this is that the clc_submapping program is meant to make it simpler to study a small region of a large mapping so the original characteristics of the larger mapping are kept 7 7 The clc_unmapped_reads Program This program extracts the unmapped read sequences from a mapping They are output in fasta format By default the only output sequences are the ones that do not match at all Using the options it is also possible to output the unaligned ends of reads A minimum length of unmapped sequences can also be specified This program is useful for investigating the sequences th
69. mmended 8 GB RAM 11 CHAPTER 2 SYSTEM REQUIREMENTS AND INSTALLATION 12 e Special requirements for de novo assembly De novo assembly may need more memory than stated above this depends both on the number of reads error profile and the complexity and size of the genome See http www clcbio com white paper for examples of the memory usage of various data sets e 64 bit computer and operating system required to use more than 2 GB RAM 2 1 1 Limitations on maximum number of cores Most modern CPUs implements hyper threading or a similar technology which makes each physical CPU core appear as two logical cores on a system In this manual the therm core always refer to a logical core unless otherwise stated For static licenses there is a limitation on the number of logical cores on the computer If there are more than 64 logical cores the CLC Assembly Cell cannot be started In this case a network license is needed read more at http www clcbio com desktop applications licensing 2 1 2 Supported CPU architectures Software from CLC bio is developed for and tested on the x86 and x86 64 CPU architectures which are used in most Intel and AMD CPUs PowerPC CPUs such as those used in Apple products until 2006 are not supported To run CLC bio Assembly Cell the CPU must also support the SSE2 instruction set which is commonly available in Intel CPUs produced from 2001 and onwards and AMD CPUs produced from 2003 and onwards
70. n in Appendix B and can be viewed by executing the command without any arguments Note that you can use the clc_sequence_info program with the n option to get statistics on the result of a de novo assembly This is described in the Viewing and reporting tools section of the manual 5 5 1 Specifying the data for the assembly and how it should be used The parameters described in this section can be used multiple times within a single clc_assembler command Information provided using flags that can be specified multiple times in a single command pertains to all inputs that follow until you specify otherwise For example if you state you wish reads to be used for guidance only all datasets entered via the command from that point forward will be used only for guidance until a point in the command where you choose to indicate that reads should be used at all stages of the assembly Please see the examples section below for further details on this Some of these options are most easily explained by considering the de novo as consisting of four steps CHAPTER 5 DE NOVO ASSEMBLY 42 1 Create fragments from reads 2 Connect fragments based on all reads to form a graph 3 Optimize the graph based on all reads 4 Optimize the graph based on paired reads p lt par gt paired lt par gt Here par is a set of parameters which indicate the pair status of your data and for paired data the relative orientations and expect
71. n used together with the r option does the counts for amino acids The lengths of the sequences can be printed or summarized using the l and k options respectively It is also possible to get various sequence length statistics Using the n option the N50 value of the sequences is calculated The N50 value means that the sum of sequences of this length or longer is at least 50 of the total length of all sequences This is useful to get a quick quality overview of a de novo assembly Use the c option to disregard all sequences under a certain length from being considered in the statistics This is sometimes useful for analyzing de novo assembly results where short sequences may not be of interest Further details are available in Appendix B 46 208 209 210 247 212 213 214 215 CHAPTER 6 REPORTING TOOLS 47 6 2 The cilc_ mapping table Program The clc_mapping_table program takes a single cas file as input and prints assembly information for each read By default cle_mapping_ table makes a table with one read per row The columns are e Read number starting from O e Read name enable using the n option e Read length e Read position for alignment start e Read position for alignment end e Reference sequence number starting from O e Reference position for alignment start e Reference position for alignment end e Whether the read is reversed 0 no 1 yes e N
72. nd beyond the end of the read are not penalized By default a region that aligns with a score of at least 10 or the length of the linker if less than 10 is considered a good enough match to identify a linker region If a match to the linker sequence with a score between O and 9 is found the read will still be split but in this situation the following will happen e The two parts of the read that have just been split are put into the singles list not the paired list The reasoning behind this is that since the linker did not match with a good enough score the match location identified might not have been correct If this was the case marking such split sequences as a pair would mean that the paired distance information would be used in a de novo assembly and this could end up being misleading within the assembly process e Any linker matches identified at the end of the read will also be trimmed This extra trimming CHAPTER 8 SEQUENCE PREPARATION TOOLS 65 stage is carried out due to the possibility that the internal linker match identified might not have been correct The following situations are particularly detrimental to de novo assembly and the clc_split_reads program tries to ensure they are avoided e Reads contain some remaining section of the linker sequence e Reads are categorized as a pair when they should not be In some cases the start or end of a read is in the middle of the linker In such cases the linker
73. nment information is only stored explicitly for one of them Should you wish to change this behavior you can use the following pair of parameters to do so The t maxalign parameter determines the maximum number of alignments that are to be stored explicitly By default only one is stored explicitly The r repeat parameter accepts one of two arguments random or ignore By default it is set to random which means that the explicitly stored alignments are sampled randomly from the total set of alignments found for a given read The ignore argument results in reads with more alignments than can be explicitly stored are ignored and reported as unmapped As an example suppose that you only want to report unique hits as mapped i e ignore alignments with more than one hit Then you can use the following combination clc_mapper t 1 r ignore 4 5 Quality filtering Once an alignment has been found it is examined by the quality filter If it fails to meet the criteria enforced by the filter it is discarded If all alignments of a particular read fail to meet the criteria the read is reported as unmapped The quality filter has two parameters s similarity and 1 lengthfraction They interact and must be understood together CTAACCACCT CTAACCACCT LII 111 PL It CTAAGGACCT CTAAGGACCT s 0 8 s 0 8 GATTACA GATTACA Ill IT ll A GATCACA GATCACA s 0 75 s 0 86 For example the default setting similarity 0 8 length f
74. not all start at exactly the same position and they are from different strands Figure 8 2 Rise in coverage CHAPTER 8 SEQUENCE PREPARATION TOOLS 62 The duplicate reads tool works directly on the sequencing reads so there is no need to map the data to a reference genome first figures 8 2 and 8 2 show the reads mapped for illustration purposes In short the algorithm will look for neighboring reads i e reads that share most of the read sequence but with a small offset and use these to determine whether there is generally high coverage for this sequence If this is not the case the read in question will be marked as a duplicate For certain sequencing platforms such as 454 the reads will have varying lengths and this is taken into account by the algorithm as well SOLID data is also supported taking into account the dual base coding features of SOLID data color space 8 3 2 Sequencing errors in duplicates It is important to take sequencing errors into account when filtering duplicate reads Imagine an example with 100 duplicates of a read of 100 bp If there is a random 0 1 probability of a sequencing error it means that 10 of these reads have an error If the algorithm only removed the 90 identical reads there will be 10 reads left with sequencing errors This is a big problem since the correct sequence is only represented once To address this issue the duplicate read removal program accounts for sequencing errors
75. of a read is identical to the first nucleotide of the adaptor it will be removed since it may have come from an adaptor The end match is defined as the longest match at the end of the read having a non negative score when aligned to the adapter e For any read with more than one region aligning with a score equal to or higher than 10 the region closest to the 3 end is considered to be an adapter and removed along with any bases towards the 3 end With the e option it is possible to change the behavior so the reads are trimmed towards the 5 end of reads rather than the 3 end In this case the conditions described above are the same with the directionality of the actions reversed The clc_adapter_trim program allows fine control over the behavior of the tool For example 58 CHAPTER 8 SEQUENCE PREPARATION TOOLS 59 e Should read sequences before or after the adapter be kept The default action is to keep the sequence before the adapter but this can be altered using the e option e Which reads should be kept For example reads where adapter was found are kept by using the t or f options and reads where the adapter was not found are kept by using the u or g options e Which adapter sequences should be searched for One or several adapter sequences can be used using the a and d options and for paired data different adapters can be used for the first and second reads in the pairs by using the j and k options Fo
76. ough the window If we have multiple sets the repeat is resolved CHAPTER 5 DE NOVO ASSEMBLY 33 3 If the repeat cannot be resolved we expand the window with nodes if possible and go to step 2 The above steps are performed for every node Resolve repeats with conflicts In the previous section repeats were resolved without excluding any reads that goes through the window While this lead to a simpler graph the graph will still contain artifacts which have to be removed The next phase removes most of these errors and is similar to the previous phase 1 A node is selected as the initial window 2 The border is divided into sets using reads going through the window If we have multiple sets the repeat is resolved 3 If the repeat cannot be resolved the border nodes are divided into sets using reads going through the window where reads containing errors are excluded If we have multiple sets the repeat is resolved 4 The window is expanded with nodes if possible and step 2 is repeated The algorithm described above is similar to the algorithm used in the previous section except step 3 where the reads with errors are excluded This is done by calculating an average avg m c where m is the number of reads going through the window and c is the number of distinct pairs of border nodes having one or more of these reads connecting them A second average avg ma ca is calculated where ma is the number of reads going thro
77. pings Join a number of assemblies to the same reference clc_submapping Extract a part of an assembly clc_unmapped_reads Extract unassembled reads from an assembly clc_unpaired_reads Extract reads from broken pairs If more advanced downstream analyses of assemblies are desired the CLC Genomics Workbench can be used see http www clcbio com genomics The Workbench uses the same de novo assembly and read mapping algorithms as the CLC Assembly Cell so these tools can be directly run in the CLC Genomics Workbench or alternatively read mapping or assembly outputs created using CLC Assembly Cellcan be imported into the Workbench However note that the CLC Genomics Workbench requires a separate license to the CLC Assembly Cell 1 1 4 Sequence preparation tools A range of different tools are available for sequence preparation clc_adapter_trim Trim adapters from sequences clc_quality_ trim Trim reads based on quality clc_remove_duplicates Remove duplicate reads from genomic data clc_sample_reads Random sampling of reads clc_sort_pairs Split paired read files into paired and unpaired files clc_split_reads Remove linker from 454 paired data and extracts pairs clc_overlap_reads Merge overlapping reads CHAPTER 1 INTRODUCTION 10 1 1 5 Format conversion cle_cas to sam For conversion of cas format mapping files to sam format clc_sam_to_cas For conversion of sam format mapping files to cas format clc_to_fasta Converts fa
78. pings and de novo assembly 3 1 1 Getting Help This manual gives information about the tools included in CLC Assembly Cell 16 CHAPTER 3 THE BASICS 17 Full usage information for each program is available in Appendix B of this user manual and also by running any of the CLC Assembly Cell commands without any arguments For the core programs clc_mapper and clc_assembler particular parameters are discussed in more detail within the chapters dedicated to those tools 3 1 2 A basic example A basic example of a CLC Assembly Cell command would be running the clc_unpaired_reads program This program generates an output file of reads that are not paired within a given mapping Here we would need to specify the mapping to look at and the name of the output file Below is an example of how such a command might look clc_unpaired_reads a assembly cas o unmapped fasta 3 2 Input Files The formats in the following table are recognized as valid input formats by one or more of the CLC Assembly Cell tools Note that not all listed formats are valid for data to be treated as sequence reads and not all listed formats are valid for data to be treated as reference sequences in the case of read mappings Input file formats are automatically detected by the software through consideration of the file contents The filename is irrelevant with regards to input format Format Reads References Fasta Fastq Scarf csfasta Sff GenB
79. r adapter sequences given with the a j or k options the reverse complement of the adapter sequences is automatically added to the list of adapters to search for Further details can be found in Appendix B 8 2 Quality trimming The clc_quality_trim program is used to trim sequencing reads for low quality The idea is to trim the reads at one or both ends so that only a region of high quality bases are left This is done by specifying a threshold value using the c option for low quality base calls The default value is 20 which means that quality scores below 20 are marked as low quality Since it is often not desirable to discard a high quality region because of one isolated low quality base you can specify the fraction of low quality bases allowed in a region using the b option The default value is 0 1 meaning that up to 10 low quality bases are allowed The trim algorithm will then for each read find the longest region that fulfills these thresholds Note that in some situations the full read will be discarded if no good quality regions can be found For paired data two separate files are specified as output one for the intact pairs use the p option for this output file and one for the single reads whose mate was discarded during trimming use the o option for this output file There are other options to refine the quality trimming even more see Appendix B 8 2 1 Fastq quality scoring The clc_quality_trim p
80. raction 0 5 means that a read will be reported as unmapped if none of its alignments feature a stretch at least 50 of the total alignment length consisting of at least 80 matches If you want to see all alignments found you can disable the filter altogether by specifying s 0 3The CAS file is a compact binary file containing information about the alignment s of the individual reads The read and reference sequences are not stored explicitly but rather the paths to the input files are stored 4By total alignment length we mean the combined length of all matches mismatches insertions and deletions Chapter 5 De novo assembly The clc_assembler program performs assembly of reads without a known reference The input data consists of files containing read sequences 5 0 1 De novo assembly inputs Any number of read files can be input to a de novo assembly These includes files containing paired reads and files containing single reads Different types of read data can be input to a single de novo assembly Below is a table of the accepted formats for data input Format option Fasta Fastq Scarf csfasta Sff GenBank Please note that paired 454 data needs to be pre processed using the clc_split_reads program 5 0 2 De novo assembly outputs The output of the clc_assembler is a fasta file containing all the contig sequences This means that there is no information about where the reads are placed how
81. rage are reported in the consensus sequence The default is to report the base from the reference sequence but it is also possible to report the position as an unknown base N or to simply remove the position Using the i option will make the program ignore all indels completely while constructiong the consensus sequence The following three options control the input and output of the program Use the a option to specify the input cas file to be analyzed This option is a required option Use the o option to specify where the output fasta file should be placed This option is a required option Finally use the w option if you want a list of zero coverage regions output to sceeen See Appendix B for further details CHAPTER 7 ASSEMBLY POST PROCESSING TOOLS 54 7 4 The clc_find_variations Program This program makes it possible to detect variants between a reference sequence and the reads It operates on a cas file produced by the reference assembly programs It makes a new consensus sequence file containing all the original data but with changes made so the references reflect the read sequences of an assembly The new consensus file is always in fasta format It is also possible to run the program so it only prints a list of differences instead of actually making a new file There is an option c to determine minimum coverage for read differences to be reported The r option will determine how conflicts in the reads shou
82. riment progress expands the reads toward each other from their starting points When the p option is used it applies to all read files from that point and forward in the command line If different experiments with different paired properties are combined the p option can be used several times To indicate that the following read files are not paired used p no This is only necessary if another p option was previously used An example clc_mapper o assembly cas d human gb q readsl fasta p fb ss 180 250 reads2 fasta p no reads3 fasta Here we have three read files where reads1 fasta and reads3 fasta are unpaired while reads2 fasta are paired reads Note that the clc_sort_pairs and clc_split_reads program can be used to convert data from SOLiD and 454 systems respectively into an format accepted by the CLC Assembly Cell tools 3 4 3 Paired Read File Input Paired data may be contained in a single file where the pairs are sorted such that the first two sequences are one pair the second two sequences the next pair and so on Paired data may also exist in two files with one file containing the first member of all pairs and the other file CHAPTER 3 THE BASICS 21 containing the second member of all pairs with each member appearing in the same ordered position in each file For example the 51st sequence in file A is the mate of the 51st sequence in file B The CLC Assembly Cell programs assume the single
83. rogram requires an ASCII offset value for the quality scores in fastq formatted files The default behavior is to automatically detect this offset from the input data but in case that this fails it is also possible to set the offset manually To set the offset correctly you need to know the pipeline used to generate the original data and then set the offset accordingly using the f option Some examples of standard offset values for Illumina pipelines are e NCBI Sanger amp Illumina Pipeline 1 8 and later 33 e Illumina Pipeline 1 2 and earlier 64 e Illumina Pipeline 1 3 and 1 4 64 e Illumina Pipeline 1 5 to 1 7 64 CHAPTER 8 SEQUENCE PREPARATION TOOLS 60 For example the following command would stipulate a minimum quality value of 10 and an offset of 33 The program will return the longest region for each read that fulfills these criteria Reads that do not have regions that make the criteria cutoffs will be discarded quality_trim r smallfile fastg c 10 f 33 o smallfile_trimmed fasta Note that the cutoff can be a negative value for the Solexa pipeline 8 3 The clc_remove_duplicates The duplicate read removal tool is designed to filter out duplicate identical reads i e keep a single representative of identical sequences reads This tool is specifically well suited to handle duplicate reads coming from PCR amplification errors which can have a negative effect because a certain sequence is represented in artificially high n
84. rompt After a few moments your license should be downloaded and a message will be written to screen saying that it was successfully downloaded and where it was saved 2 4 3 Licensing the software on a non networked machine Using the tool distributed with CLC Assembly Cell for downloading a static license the license will be specific to the machine you download it to For a machine unable to connect to an outside network you can follow the steps below to get a license for the software 1 Get the host id for the machine that CLC Assembly Cell is installed on To do this run the clc_cell_licutil tool as per the instructions in the Linux and Mac or Windows sections above You do not need administrator privileges for this 2 Copy the Host ID s information that is printed near the top of the output 3 On a machine that is able to reach external sites go to the webpage https secure clcbio com LmxWSv3 GetLicenseFil 4 Paste in your License Order ID and your host ID information as well as a host name The host name is not important but we recommend it is something that allows you to recognise or identify the machine that s been licensed if needed 5 Click on the Save button 6 Move the license file onto the machine where CLC Assembly Cell is installed 7 Save the license file in the folder called licenses in the installation directory of CLC Assembly Cell 2 5 Network Licenses Network licenses are made available to u
85. ror P Word size E Figure 5 16 Several sites of errors that are close together compared to the word size In this case the bubble will be very large because there are no complete words in the regions between the homopolymer sites and the graph will look like figure 5 17 If the bubble is too large the assembler will have to break it into several separate contigs instead of producing one single contig The maximum size of bubbles that the assembler should try to resolve can be set by the user In the case from figure 5 17 a bubble size spanning the three error sites will mean that the bubble CHAPTER 5 DE NOVO ASSEMBLY 39 ee o Figure 5 17 The bubble in the graph gets very large will be resolved See figure 5 18 O e Systematic error EEEE Bubble size Figure 5 18 The bubble size needs to be set high enough to encompass the three sites While the default bubble size is often fine when working with short high quality reads considering the bubble size can be especially important for reads generated by sequencing platforms yielding long reads with either systematic errors or a high error rate In such cases a higher bubble size is recommended For example as a starting point one could try half the length of the average read in the data set and then experiment with increasing and decreasing the bubble size in small steps For data sets with a high error rate it is often necessary to increase the bubble size to the m
86. s Gia a al de mou no eee ce ee 4 3 Alignment paraMetelS 5 2 a ee ke CA Me eke Ce ee ALE MAtOMScore sae ew aa eh ee ae ee EO eee ed eS 4 3 2 MISMA LCNCOSL immer e deu ee di dao IRC COST aaa a Slee Bt Heat eka ee Hive BY alta di we E A434 AMES Cap COSt 2a eh Ba ee eR ee OE AO AENMENLMANRS a aiii OR AE Ge Bh Bo eA ae we EE 4 4 REPOMINE and fitering s sorada 88 ke ee ewe mb ee aot ee ee 18 ODA AISNE gt uc sete a eae at Pee Re et Pee es ea 5 De novo assembly 5 0 1 De novo aSSEIMDIY INDUS 2 20 ake os Seba ak oe eee du 5 0 2 De novo assembly outputs es Bl HOWIEWORS gt CL LR Te ac dt es do SN CE ee a CONTENTS 5 5 1 1 Resolve repeats Using reads 24 24 pub dt un deu a cute 30 Remove WEEK CUBES sae e LR sue ss saines LS eue 31 REMOVE dead ends st ee an ti gout gen oh cp ce E oi ae mi 31 Resolve repeats without conflicts s o sosoo 31 Resolve repeats with conflicts 33 5 1 2 Automatic paired distance estimation 33 5 1 3 Optimization of the graph using paired reads 35 SA4 AGP EXON 2 at cated rae er tee Ven dt wel oa BEE Ge Gime Sem wt wa Bh weer a ow 37 SLS Buble resolution subidas ae ae a doute we m 37 5 1 6 Converting the graph to contig sequences 39 AAA SUMMAN o asc a ee ut o ao ceeds ace yk Se Ry aged eee ee we Ge st E 39 5 2 R
87. s and they are all printed The order is random which has the advantage that using the first match according to output order is the same as using a random match For paired data like these the matches are in the same order for two paired reads So the first match for 482 belongs with the first match for 483 etc For alignment output in clc_mapping_table with m it looks like this SLXA EAS1_89 1 1 980 945 1 has 1 paired match with a score of 35 alignment 1 19626 AGCTCCCCCAAAGTTAAGGTGGGGGAGATAGATTA 19660 coli PITT TLE PEP EPP EEE PEEP PP PPP tibia AGCTCCCCCAAAGTTAAGGTGGGGGAGATAGATTA read SLXA EAS1_89 1 1 980 945 2 has 1 paired match with a score of 35 alignment 1 19816 GATAGTGTTTTATGTTCAGATAATGCCCGATGACT 19850 coli Plt PITT ET EEE EEE Lirio GATAGTGTTTTATGTTCAGATAATGCCCGATGAC reverse read SLXA EAS1_89 1 1 307 821 1 has 3 paired matches with a score of 35 alignment 1 2512502 CGGCCCCGGGGGGATGTCATTACGTGAAGTCACTG 2512536 coli PITT ITEP TEEPE PEPE TENTE CGGCCCCGGGGGGATGTCATTACGTGAAGTCACTG reverse read SLXA EAS1_89 1 1 307 821 1 has 3 paired matches with a score of 35 alignment 2 607437 CGGCCCCGGGGGGATGTCATTACGTGAAGTCACTG 607471 coli PITTI LEP ELE EP TEEPE E EPP P PP iti bitin CGGCCCCGGGGGGATGTCATTACGTGAAGTCACTG reverse read SLXA EAS1_89 1 1 307 821 1 has 3 paired matches wit
88. sequence is still removed and the read is put into the file with unpaired reads If only very few nucleotides of the linker overlap with the read they are also removed even though they may not come from the linker In the case where only a single nucleotide at the start and or end of the read may come from a linker it is removed The rationale is that it is better to discard a few nucleotides and be sure there is no adapter sequence left since remaining linker sequence is problematic for de novo assembly The m option can be used to specify the minimum read length Only reads this long or longer will be reported The default value is 15 This becomes important when the linker is close to the start or end of the read and only a small fragment is left on one side of the linker If that small fragment is below the specified minimum length it is discarded along with the linker The remaining part of the read will be written to the unpaired file Further details of the options for this tool are provided in Appendix B 8 7 The clc_overlap_reads Program In cases where paired end library preparation methods use a relatively short fragment size some read pairs will overlap These overlapping reads can be handled as standard paired end data However in some situations it can be useful to merge the overlapping pairs into a single read The benefit is that you get longer reads and that the quality improves normally the quality drops towards th
89. sers of CLC Assembly Cell software by using a separate piece of sofware called CLC License Server In general terms you need to e Download install and start up CLC License Server on a machine that is accessible to the machines that CLC Assembly Cell will be running on This would generally be a machine that is left on with the CLC License Server running as a service e Configure the license settings for copies of CLC Assembly Cell that will make use of the network licenses 2Locations for static license files supported in earlier versions of the CLC Assembly Cell can continue to be used We recommend however that you choose to store your static license in the licenses folder in the installation directory as this could help us in troubleshooting any licensing issues you may contact us about CHAPTER 2 SYSTEM REQUIREMENTS AND INSTALLATION 15 2 5 1 Installing and Running CLC License Server How to install and run CLC License Server is described in our CLC License Server manual available from http www clcbio com wp content uploads 2012 09 CLC_License_Server_ User_Manual pdf The CLC License Server software can be downloaded from http www clcbio com products clc license server direct download 2 5 2 Configuring the software to use a network license In order to make CLC Assembly Cell contact the license server for a license you need to create a text file called License properties including the following information
90. solve the repeat scaffolding is performed where paired read information is used to determine the distances between contigs and the orientation of these Scaffolding is only considered between two contigs if both are at least 120 bp long to ensure that enough paired CHAPTER 5 DE NOVO ASSEMBLY 36 read information is available An iterative greedy approach is used when performing scaffolding where short gaps are closed first thus increasing the paired read information available for closing gaps see figure 5 12 i i 1 Figure 5 12 Performing iterative scaffolding of the shortest gaps allows long pairs to be optimally used i4 shows three contigs with dashed arches indicating potential scaffolding i2 is after first iteration when the shortest gap has been closed and long potential scaffolding has been updated i3 is the final results with three contigs in one scaffold Contigs in the same scaffold are output as one large contig with Ns inserted in between The number of Ns inserted correspond to the estimated distance between contigs which is calculated based on the paired read information More precisely for each set of paired reads spanning two contigs a distance estimate is calculated based on the supplied distance between the reads The average of these distances is then used as the final distance estimate The distance estimate will often be negative which happens when the paired information indicate that two contigs overlap
91. stq sff csfasta and genbank format files into fasta 1 2 Latest improvements CLC Assembly Cell is constantly under development and a detailed list that includes a description of new features improvements bugfixes and changes for the current version of CLC Assembly Cell can be found at http www clcbio com products clc assembly cell latest improvements Chapter 2 System Requirements and Installation 2 1 System requirements Windows Vista Windows 7 Windows 8 Windows 10 Windows Server 2008 or Windows Server 2012 Mac OS X 10 7 or later Linux RHEL 5 0 or later SUSE 10 2 or later Fedora 6 or later 1024 x 768 display recommended Intel or AMD CPU required Special requirements for read mapping The numbers below give minimum and rec ommended memory for systems running mapping and analysis tasks The require ments suggested are based on the genome size Systems with less memory than specified below will benefit from installing the legacy read mapper plugin see http www clcbio com plugins This is slower than the standard mapper but adjusts to the amount of memory available E coli K12 4 6 megabases x Minimum 500 MB RAM x Recommended 1 GB RAM C elegans 100 megabases and Arabidopsis thaliana 120 megabases x Minimum 1 GB RAM x Recommended 2 GB RAM Zebrafish 1 5 gigabases x Minimum 2 GB RAM x Recommended 4 GB RAM Human 3 2 gigabases and Mouse 2 7 gigabases Minimum 6 GB RAM x Reco
92. t refers to just one of the files when it has been selected using the d option or when a single reference sequence has been selected with the s option If the g option is used an output file is made with only the reference sequences of the output mapping The new mapping automatically refers to this reference sequence file This is typically CHAPTER 7 ASSEMBLY POST PROCESSING TOOLS 56 useful when selecting only a single reference sequence and the input alignment contains many reference sequences in the same file That way the output only contains the relevant reference sequence instead of many references with no matches It makes the output easier and faster to work with If a position range was specified the output reference file only contains these positions 7 6 8 Output Read File By default the output refers to one or all of the read files in the input It refers to just one of the files when it has been selected using the q option Using the f option a new read file is made instead containing only the reads that match The output automatically refers to this new read file instead of the originals This is very useful when making a sub mapping that only covers a small part of the original reference sequences That way a much smaller number of reads come into play when working with the sub mapping making subsequent analyses more efficient When the reads are from a paired experiment the read
93. t be used as input with the clc_assembler command unless the intention is to treat all reads as single reads 5 5 2 Specifying information for the assembly Options in this section can alter the results of the assembly The How it works section of the manual gives further details that are relevant to how these settings may affect an assembly w lt n gt wordsize lt n gt Set n to be the word size for the de Bruijn graph The default is based on the size of the input as described in the How it works section of the manual b lt n gt bubblesize lt n gt Set the maximum bubble size for the de Bruijn graph The default is 50 bases e lt file gt estimatedistances lt file gt This setting estimates the distances for paired reads as observed within unscaffolded contigs These distances are then used in the scaffolding step If multiple sets of paired data have been input the distances are estimated separately for each data set The distances calculated will be saved to the file specified as the argument to this parameter CHAPTER 5 DE NOVO ASSEMBLY 44 When this flag is used the program will aim to identify tight distance intervals from areas containing a substantial number of the mapped reads for each dataset There are situations where it is not possible to estimate accurate paired distances from the data such as e No best candidate interval for distance estimation can be specified as the two best candidate int
94. ther O or 60 The value 60 is given to reads that mapped uniquely The value O is given to reads that could map equally well to other locations besides the one being re ported in the BAM file This scoring system is based on a recommendation provided in the the SAM FAQ http sourceforge net apps mediawiki samtools index php title SAM_FAQ Why_mapping_quality 3F The SAM or BAM file created using the clc_cas_to_sam tool is not sorted or indexed These steps can be necessary for some types of downstream processing and can be done using the samtools sort program see http samtools sourceforge net Like cas format files SAM and BAM files do not contain the reference sequence data Further details of the command line options for this tool are provided in Appendix B Further details about the SAM and BAM formats can be found at http samtools sourceforge net 9 2 The clc_sam_to_cas Program This tool converts a read mapping in sam or bam format to a cas format file 67 CHAPTER 9 FORMAT CONVERSION TOOLS 68 The clc_sam_to_cas tool converts SAM or BAM files to cas format Like cas format files SAM and BAM files do not contain the reference sequence data so the reference sequences need to be provided when running this command This is so that the required information can be generated for the cas file You also need to provide a destination for the sequencing read data to be written to when running this program Further details
95. they align cover age levels etc If this information is desired you can use the clc_mapper or clc_mapper_legacy program and use the newly created contig sequences as references The cas format file created using the mapping program will contain this sort of information If the f option has been used then a file containg features related to scaffolding will be generated Choosing to name the file given as an argument to the f option with a agp suffix will generate an AGP format file This format specification can be found online https www ncbi nlm nih gov projects genome assembly agp AGP_Specification shtml Choosing to name the file given as an argument to the f option with a gff suffix will generate a 27 CHAPTER 5 DE NOVO ASSEMBLY 28 GFF format file The columns of this file contain the following information Column 1 Name of contig Column 2 Source program Column 3 Annotation type see below Column 4 Start position Column 5 End position Column 6 Score see below Column 7 8 and 9 no meaning there to conform to the GFF format Further details about Annotation types column 3 There are three annotation types that can appear in the third column 1 Alternatives Excluded More than one path through the graph was possible in this region but evidence from paired data suggested the exclusion of one or more alternative routes in favor of the route chosen 2 Contigs Joined More than one route was possible through the
96. ugh the window having at least avg or more reads connecting their border nodes and cz the number of distinct pairs of border nodes having avg or more reads connecting them Then a read between two border nodes B and C is excluded if the number of reads going through B and C is less than or equal to limit given by ine log avga avg 2 16 An example where we resolve a repeat with conflicts is given in 5 9 where we have a total of 21 reads going through the window with avg 21 3 7 avga 20 2 10 and limit 1 2 10 16 1 125 Therefore all reads between border nodes B and C are excluded resulting in two sets of border nodes A C and B D The resolved repeat is shown in figure 5 10 ay n A a a C Figure 5 9 A repeat with conflicts 5 1 2 Automatic paired distance estimation The default behavior of the de novo assembler is to use the paired distances provided by the user If the automatic paired distance estimation is enabled the assembler will attempt to CHAPTER 5 DE NOVO ASSEMBLY 34 c B Y D Figure 5 10 Resolving a repeat with conflicts estimate the distance between paired reads This is done by analysing the mapping of paired reads to the long unambiguous paths in the graph which are created in the read optimization step described above The distance estimation algorithm creates a histogram H of the paired distances between reads in each set of paired reads see figure 5 11 Each o
97. umber of optimal locations for the read e Alignment score enable using the s option If a read does not match all columns except the read number and name are 1 If a read is reverse the read positions for the alignment start and end are given after the reversal of the read The sequence positions start from O indicating before the first residue and end at the sequence length indicating after the last residue So a read of length 35 which matches perfectly will have an alignment start position of O and an alignment end position of 35 Here is part of an example output using both the n and the s option SLXA EAS1_89 1 1 622 715 1 39 0 39 0 89385 89420 0 35 SLXA EAS1_89 1 1 622 715 2 35 0 35 0 89577 89612 1 35 SLXA EAS1_89 1 1 201 524 1 35 0 32 0 4829 4861 0 29 SLXA EAS1_89 1 1 201 524 2 1 1 1 1 1 a1 ET gt f SLXA EAS1_89 1 1 662 721 1 35 0 35 0 38254 38289 1 35 SLXA EAS1_89 1 1 662 721 2 35 0 39 0 38088 38123 0 32 SLXA EAS1_89 1 1 492 826 1 35 0 35 0 81872 81907 1 35 SLXA EAS1_89 1 1 492 826 2 39 0 35 0 81685 81720 0 35 As the read names indicate the data are from a paired experiment Read 211 does not match at all and only the first 32 out of the 35 positions in read 210 matches The score for this read is 29 indicating that a mismatch is also present 31 2 29 Read 213 also has a mismatch while the rest of the sequences match perfectly We can also see that the pa
98. umbers The challenge is to achieve this without removing identical or almost identical reads that would arise from high coverage of certain regions e g repeat regions The duplicate read removal tool is designed for use with genomic data generally the type of data used for a de novo assembly and not recommended for exome data RNA seq data and Chip seq data The algorithm takes sequencing errors into account see below The Remove Duplicate Reads tool is not designed for use with data that will be used for variant detection downstream A tool different tool is available for these sorts of data called Remove Duplicate Mapped Reads This tool acts on mappings to look for and remove duplicate mapped reads The approach taken here is based on the raw sequencing data without any knowledge about how they map to a reference sequence This means that the tool is well suited for use before running de novo assembly It s not recommended to be used for RNA Seq data and similar where the read coverage can t be assumed to be poisson distributed Please note that you need to trim any adapters from your sequences before you use the remove duplicates tool This is because adapters will cause many sequences to be falsely identified as duplicates Please do not trim for data quality before running the remove duplicates tool This is because in the first round of running the remove duplicates tool it looks for identical words at the beginning of reads If
99. ut conflicts considers a number of nodes called the window To start with a window only contains one node say R We also define the border nodes CHAPTER 5 DE NOVO ASSEMBLY 32 as the nodes outside the window connected to a node in the window The idea is to divide the border nodes into sets such that border nodes A and C are in the same set if there is a read going through A through nodes in the window and then through C If there are strictly more than one of these sets we can resolve the repeat area otherwise we expand the window e pa Figure 5 6 A set of nodes In the example in figure 5 6 all border nodes A B C and D are in the same set since one can reach every border nodes using reads shown as red lines Therefore we expand the window and in this case add node C to the window as shown in figure 5 7 Figure 5 7 Expanding the window to include more nodes After the expansion of the window the border nodes will be grouped into two groups being set A E and set B D F Since we have strictly more than one set the repeat is resolved by copying the nodes and edges used by the reads which created the set In the example the resolved repeat is shown in figure 5 8 E PR R C E D E s D Figure 5 8 Resolving the repeat The algorithm for resolving repeats without conflict can be described the following way 1 A node is selected as the window 2 The border is divided into sets using reads going thr
100. ved but it is not For paired reads this is only 10 bases CHAPTER 8 SEQUENCE PREPARATION TOOLS 63 able to distinguish between sequencing errors and true variation in the reads So if you have a heterozygous SNP in such an area you may risk that only one of the alleles are preserved 8 3 5 Example of duplicate read removal The following command outputs all reads to coli_reads_nodup fa that are not identified as duplicates from the paired reads contained in coli_reads_1 2 faandcoli_reads_2 2 fa clc_remove_duplicates p r i coli_reads_1 2 fa coli_reads_2 2 fa 0o coli_reads_nodup fa The program runs only in a single thread and for large data set it would be convenient to run multiple instances at the same time for each data file 8 4 The clc_sample_reads Program This tool extracts a subset of reads where the size of the subset is a percentage of the input size Sampling is done in a pseudo random way which does not guarantee that the extracted subset comprises an exact percentage of the input reads The input reads can be provided in both interleaved and non interleaved format and reads marked as paired are kept together Read sampling can be useful for reducing coverage of datasets with a very high coverage gt 500x coverage in preparation for a de novo assembly A reduction in coverage makes the assembly run faster and reduces the chance of having overlapping errors in the reads thus increasing the assembly quality
101. was at a negative distance If this is the case the interval k l for the positive peak is used as a distance estimate e f two peaks were found and the largest peak has gt 2X observations compared to the smaller peak the interval k l corresponding to the largest peak is used as the distance estimate If a distance estimate for a data set is deemed unreliable the estimate is ignored and replaced by the distance supplied by the user using the p option for that data set The e option requires a file name argument which is used to output the result of the distance estimation for each dataset The output is a tab delimited file containing the estimated distances if any and a status code for each data set The possible status codes are CHAPTER 5 DE NOVO ASSEMBLY 35 3000 largest peak 9 2500 2000 1500 Observations 1000 TT 500 y lt ae an are aa ln 100 84 68 52 36 20 4 12 28 44 60 76 92 108 124 140 156 172 188 204 220 236 252 268 284 300 316 332 348 364 380 396 412428 444 460476 492 Distance Figure 5 11 Histogram of paired distances where Havg is indicated by the horizontal dashed line There is two peaks one is at a negative distance while the other larger peak is at a positive distance The extended interval k 1 for each peak is indicated by the vertical dotted lines e DISTANCE_ESTIMATED The distance interval was estimated and used for
102. work Licenses ee 251 2 52 Installing and Running CLC License Server Configuring the software to use a network license 2 0 Restictina CP HUSSBS 00 LL LL Goa eth sinus de une Boe st 3 The Basics o O O O 10 10 11 11 12 12 12 12 13 13 13 14 14 15 15 15 16 CONTENTS 3 1 How to use the programs 4 eee eR ew ou 1 GENE HEID i so io e k e ag de ge ee ES ewes E eo ee RU eee 341 2 Abasic xample iii te ba bb ed ape ba bad beeen ah oe INDUC FIICE a ee Bra acacia yo fh Goa Bay Po gcd aid de Ee ne a 3 0 Cas File FORMAL 2 4 4 a ee ek ee a ee a a ee ee eS ero CaS Foimat BASICS uds sta po bce eon ee te ee EER ee 3 3 2 Whatacas file contains iio ba bed eee gee a 3 3 2 What acas file does Not COntAIM i e eens dune oh gras us 3 3 4 Considerations and limitations 3 3 5 Converting to and from SAM and BAM formats 3 4 Paired read Considerations s s s s s aara sessed riria t nia 3 4 1 Relative orientation of the reads s i esos su nomeu da ee eue 3 4 2 Measuring the distance between the reads 24 9 Paired Read File INPUT 4 g a mis e BOR sn sul te ae 4 Read Mapping 4 1 References and indexes wu NS Be PN ee a a A a UM a Wee REdUS aha am wee io a de eee BE e aa ee ee D ADM SINGIOTEGIS 0 ech ee le ee ek ee He ed A PARA a s

Download Pdf Manuals

image

Related Search

manual manual manualslib manual car manuale digitale manual transmission manually meaning manual timesheet manual arts high school manual wheelchair manually update your device drivers windows manual labor manual definition manual for courts martial manual muscle testing manual muscle testing grades manually register devices with autopilot manual lawn mower manualidades manual transfer switch manual blood pressure cuff manual transmission cars for sale manual therapy cpt code manual libs manual autopilot enrollment manual handling

Related Contents

Craftsman 5 pc. Screwdriver Set, Precision Manufacturer's Warranty  Barclay Products TKCTRN67-CP1 Installation Guide  PLENÁRIO - Tribunal de Contas da União  Petra KM 90.07  pdf版はこちらから  LC-27 (ES)_CD  Elica Adagio BL/F/90  One For All SV6440 flat panel wall mount  Harbor Freight Tools (301cc) Product manual  

Copyright © All rights reserved.
Failed to retrieve file