Home
Biofilter - 2.2 User Manual
Contents
1. Example 6 Output of genes found in pathway based input filtered by genotyping platform Configuration KNOWLEDGE test db SNP rell rs12 rs13 rs14 GENE A CEGPR GROUP cyan yellow FILTER region Output chr region start stop 1 A 8 22 44 Example 7 Output of genes annotated by group found in pathway based input filtered by genotyping platform Configuration KNOWLEDGE test db SNP rs11 rs12 rs13 rs14 rsl6 rs17 rs18 GENE ACEGPR GROUP cyan yellow FILTER gene group Output gene group A cyan E cyan Dann Crop stones O sos N T DE matatzue inke ames A gone Ocremarures ng fur Example 8 Genes within data sources from a list of input genes filtered by genotyping platform output regions Configuration KNOWLEDGE test db SNP rell rs12 rs13 rs14 rsl6 rs17 rs18 GENE ACEGPR SOURCE paint spectrum FILTER region Output chr region start stop A 8 22 C 54 62 Example 9 Find overlap between two SNP lists and map the overlapping SNPs to the genes Input files inputl input2 snp snp rs11 rs14 rs12 rs15 rs13 rs16 rs14 rs17 rs15 rs18 rsl6 rsl19 Configuration KNOWLEDGE test db SNP FILE input SNP FILE input2 FILTER snp gene region Output snp gene c
2. f A ma itself does not require an internet BioGRID f di MINT 9 connection to run The process of PharmGKB Knowledge ai building LOKI requires a relatively j y Integration A em LOKI ge large amount of time and disk space to 8 Pathways complete but only needs to be done Gene Ontology Emmer KEGG Annotations occasionally to incorporate updated zen 1 eme D s NetPath a WASC data files from the various sources SE EE Knowledge Sources Source URL Summary BioGRID http thebiogrid org BioGRID is a repository with genetic and protein interaction data from model organisms and humans used by Biofilter for linking position and region data to interaction information NCBI dbSNP http www ncbi nlm nih gov snp A database of SNPs and multiple small scale variations including insertions deletions microsatellites and non polymorphic variants This resource includes a complete list of known human SNPs and their base pair positions relative to the human reference genome Biofilter uses the data of dbSNP in two ways connecting SNP identifiers RS numbers of dbSNP to genomic positions and connecting retired identifiers to current identifiers NCBI Gene http www ncbi nlm nih gov gene Entrez is a search engine that allows users to search many discrete health sciences databases at the NCBI The database provides an extensive list of known human genes their beginning
3. If a given set of analyses need to be repeatable or verifiable such as those published in a manuscript we recommend storing an archived version of the LOKI knowledge database from the time of the analyses These archived versions of the database can then be used to repeat or augment an analysis based on exactly the same prior knowledge regardless of any updates that may have occurred in various data sources afterwards For this purpose it may be useful to include the date in the filename of each newly compiled version of LOKI in order to carefully distinguish between older versions 14 LD Profiles Biofilter and LOKI allow for gene regions to be adjusted by the linkage disequilibrium LD patterns in a given population When comparing a known gene region to any other region or position such as CNVs or SNPs areas in high LD with a gene can be considered part of the gene even if the region lies outside of the gene s canonical boundaries LD profiles can be generated using LD Spline a separate software tool bundled with Biofilter For more information about LD Spline please visit the www ritchielab psu edu website for details on generating and using LD profiles see Appendix 2 15 Using Biofilter Biofilter can be run from a command line terminal by executing biofilter py or python biofilter py and specifying the desired inputs outputs and other optional settings All options can either be provided directly on the c
4. ambiguous links genes Ay regions OD cdromosomes O SNPs Aural Example 2 Map SNPs to groups and filter on the source Configuration KNOWLEDGE test db SOURCE paint FILTER snp group source 42 Output Snp group source rsll cyan paint rsl12 cyan paint rsi5 cyan paint rsl6 cyan paint Example 3 Testing overlap of SNP and region lists outputting regions Input files inputl input2 snp chr region start stop rs14 A 8 22 rs15 B 28 52 rsl6 54 62 rsl7 D 58 L2 rs18 rs19 Configuration KNOWLEDGE test db SNP_FILE inputl REGION FILE input2 FILTER region Output chr region start stop 1 B 28 52 C 54 62 D 58 72 Example 4 Testing overlap of gene and source lists outputting regions Configurati on KNO SOU VLEDGE test db GENE ACEGPR RCE spectrum FILTER region 43 Output chr 3 3 region start P 14 R 44 stop 18 52 Example 5 Filter gene list based on sources and output regions Configuration KNOWLEDGE test db GENE ACE GPR SOURCE paint spectrum FILTER gene source region Output gene source chr region start stop A paint A 8 22 E paint E 54 62 P spectrum 3 P 14 18 R spectrum 3 R 44 52
5. ALTERNATE_MODEL_FILTERING Argument yes no Default no When enabled the primary input dataset is only applied to one side of a generated model while the alternate input dataset is applied to the other When disabled the default the primary input dataset applies to both sides of each model all pairwise models ALL_PAIRWISE_MODELS Argument yes no Default no When enabled model generation results in all possible pairwise combinations of data which conform to the primary and alternate input datasets Note that this means the models have no score or ranking since the prior knowledge is not searched for patterns When disabled the default models are only generated which are supported by one or more groupings within the prior knowledge database maximum model group size MAXIMUM_MODEL_GROUP_SIZE Argument lt size gt Default 30 Limits the size of a grouping in the prior knowledge which can be used as part of a model generation analysis any group which contains more genes than this limit is ignored for purposes of model generation A value of 0 means no limit minimum model score MINIMUM_MODEL_SCORE Argument lt score gt Default 2 Sets the minimum source tally score for generated model a model must be supported by groups from at least this many sources in order to be returned sort models SORT_MODELS Argument yes no Default yes When enabled the default models are output in descending order by score When
6. below Note that this diagram reflects the fact that there may be multiple names for the same gene i e D and DE both refer to gene D and some names may be associated with multiple genes i e DE refers to both genes D and E __ group aliases drours group members Gil gene aliases genes The cyan group contains three genes of which the third is ambiguous because we are given two identifiers for it but one of them refers to two different genes The magenta yellow and oray black groups each contain only one gene but in each case we are given three different names for that gene which agree or disagree with each other in varying ways Because of the ambiguity in the provided identifiers the genes which are considered members of these groups will appear to vary depending on the user s choice for the ALLOW_AMBIGUOUS_KNOWLEDGE and REDUCE_AMBIGUOUS_KNOWLEDGE options 53 Ambiguity Reduction Heuristics Biofilter and LOKI currently support two heuristic strategies for reducing ambiguity These strategies make what is essentially an educated guess about what the original data source intended by the set of identifiers it provided The first heuristic is called implication and it rates the likelihood of each potential gene being the intended one by counting the number of identifiers which implicate that gene The second heuristic called quality is similar except that
7. configuration file generated Thu 18 Jul 2013 12 00 00 Biofilter version 2 1 0 2013 07 18 LOKI version 2 1 0 2013 07 18 se e H ORT_CONFIGURATION RT_REPLICATION FINGERPRINT RT GENOME BUILD n ORT GENE NAME STATS n ORT_GROUP 7 UNVAL A 1 Le uN dd bi D Di E Wu ED op POSITIONS K j ke 00000000 iZ JRE E E EK fen EH O O DUSAU DDD DD W 25 MAXIMUM MODEL COUNT 0 ALTERNATE MODEL FILTERING no ALL PAIRWISE MODELS no MAXIMUM MODEL GROUP SIZE 30 MINIMUM MODEL SCORE 2 SORT MODELS yes QUIET no VERBOSE no PREFIX biofilter OVERWRITE no STDOUT no REPORT NVALID INPUT no SNP List Input Files SNP input files only require one column listing the RS number of each SNP which may optionally begin with the rs prefix If all inputs and outputs only deal with SNPs then these RS numbers will all be used as is If any additional columns are included they will be stored and returned via the s
8. contain 2 to 4 columns formatted as in the POSITION option but separated by tabs instead of colons region REGION Arguments lt region gt region Default none Adds or intersects the specified set of regions to or with the primary input dataset Regions must be provided as 3 or 4 fields separated by colons chr start stop or chr label start stop Chromosomes may have an optional chr prefix region file REGION_FILE Arguments lt file gt file Default none Adds or intersects the set of regions read from the specified files to or with the primary input dataset Files must contain 3 or 4 columns formatted as in the REGION option but separated by tabs instead of colons gene GENE Arguments lt gene gt gene Default none Adds or intersects the specified set of genes to or with the primary input dataset The specified genes will be interpreted according to the GENE_IDENTIFIER_TYPE option gene file GENE_FILE Arguments lt file gt file Default none Adds or intersects the set of genes read from the specified files to or with the primary input dataset Files must contain 1 or 2 columns separated by tabs For 1 column files genes are interpreted according to the GENE_IDENTIFIER_TYPE option For 2 column files the first column specifies the gene identifier type by which the second column will be interpreted gene identifier type GENE_IDENTIFIER_TYPE Arg
9. db SNP rell rs24 rs99 ANNOTATE snp position Output fsnp chr position pos rs11 1 rs11 10 rs24 2 rs24 40 rs99 40 Example 3 Map a SNP to the groups and sources where the SNP is present Biofilter can be used to map a list of SNPs or a single SNP to the groups and sources where those SNPs are present Configuration KNOWLEDGE test db SNP rell rs24 rs99 ANNOTATE snp group source Output Snp group source rs red light rs green light rs11 blue light rs11 gray light rs11 cyan paint rs24 rs99 Example 4 Annotating a base pair region with the list of SNPs in that region A region can be supplied to Biofilter with an output of the SNPs known to be in that region Configuration KNOWLEDGE test db REGION 1 1 60 ANNOTATE snp region Output snp chr region start stop rs11 A 8 22 rs12 A 8 22 rs13 B 28 52 rs14 B 28 52 rs15 B 28 52 rs15 C 52 62 rsl6 C 54 62 rsl6 D 58 72 Example Filtering followed by annotation Example 1 Input a SNP list and map SNP positions to regions Configuration SNP rell KNOWLEDGE test db rs12 rs13 rs14 rs15 rsl6 FILTER region Output chr region 1 A 8 B 28 e 54 D 58 start stop 22 52 62 72 scores group sisses Om Nic links
10. for important interactions between SNPs or genes The key idea behind this analysis is that any pathway ontological category protein family experimental interaction or other grouping of genes or proteins implies a relationship between each of those genes or proteins If the same two genes appear together in more than one grouping they re likely to have an important biological relationship if they appear in multiple groups from several independent sources then they re even more likely to be biologically related in some way Biofilter has access to thousands of such groupings and can analyze all of them to identify the pairs of genes or SNPs appearing together in the greatest number of groupings and the widest array of original data sources These pairs can then be tested for significance within a research dataset avoiding the prohibitive computational and multiple testing burden of an exhaustive pairwise analysis Biofilter can take any combination of input data and use it to focus the search for likely pairwise interaction models For example a user can provide a list of SNPs and request gene gene models Biofilter will then only consider models in which both genes contain at least one of the specified SNPs The models suggested by Biofilter are also ranked in order of likelihood using an implication index This score is simply a combination of two tallies the number of original data sources which contained the pair and the number
11. for internal or debugging purposes and may change or disappear in a future release use them at your own risk Example Knowledge In order to provide examples of filtering annotation and model building commands for Biofilter 2 0 we have provided a simulated LOKI database This simulated database contains three fictitious sources named light paint and spectrum which define eleven pathways named red green blue gray cyan magenta yellow gray orange indigo violet linked to 13 genes and 21 SNPs sources L jg p aliases Orom group members O proton ahasan B iene dinos C ganas Ao egioes MD crromesomas O NPs Izeal 3 33 This simulated knowledge is intended to provide easily understood examples of Biofilter s functionality without relying on real world cases which might become outdated Many important concepts and edge cases are represented here such as two groups with the same primary label gray which can only be differentiated by their aliases white and black some genes with multiple aliases i e A and A2 and some aliases referring to multiple genes i e DE could be gene D or gene E The groups from the paint and spectrum sources demonstrate many varieties of ambiguity These are discussed in depth in Appendix 1 but for the examples in this chapter we
12. gene Output genel gene2 score src grp A e 2 3 D sources Corcup aiiases O groups red green magenta yellow lt strctlinks s ambiguous links O genes 50 Biofilter has determined that genes A and C are found together in three groups across two sources In other words both the light and paint sources contain groups blue gray and cyan that suggest a relationship between genes A and C This relationship is summarized by the implication score 2 3 which gives the number of sources followed by the number of groups which support this gene model Each time the same pairwise model of genes is found in another source the left hand index of the implication score for that pairwise model increases by one each time it is found in another group from the same source the right hand index increases by one Step 3 Break down the gene gene models into all pairwise combinations of SNPs across the genes within sources light and paint Configuration KNOWLEDGE test db SOURCE light paint MODEL snp Output snpl snp2 score src grp rsli rsi5 23 rs rsl6 23 rs12 rsl15 253 rs12 rsl6 2 3 uces C group stees black iaa magenta yellow gray N trict links ambiguous inks 51 Changes in Biofilter 2 0 Modeling Although this three step strategy will work in the new version of Biofilter the
13. gt while arguments which are optional are enclosed in square brackets Many options have only two possible settings and therefore accept a single argument which can either be yes or no or on or off or 1 or 0 Specifying these options with no argument is always interpreted as a yes such that for example VERBOSE yes and VERBOSE have the same meaning However omitting such options entirely may default to either yes or no depending on the option Configuration Options help HELP Displays the program usage and immediately exits version VERSION Displays the software versions and immediately exits Note that Biofilter is built upon LOKI and SQLite each of which will also report their own software versions report configuration REPORT_CONFIGURATION Argument yes no Default no Generates a Biofilter configuration file which specifies the current effective value of all program options including any default options which were not overridden This file can then be passed back in to Biofilter again in order to repeat exactly the same analysis 16 report replication fingerprint REPORT_REPLICATION_FINGERPRINT Argument yes no Default no When used along with REPORT_CONFIGURATION this adds additional validation options to the resulting configuration file These extra options specify all relevant software versions as well as a fingerprint of the data contai
14. it also considers the number of genes that each identifier refers to as a measure of that identifier s quality a high quality identifier which refers to only one or two genes is then given more weight than a low quality identifier which refers to many genes In practice these two heuristic strategies will often produce the same results in fact when using real data from our real prior knowledge sources we have yet to find a case where they do not reach the same conclusion It is possible that such a case will arise in the future however so the magenta yellow and gray black groups in the testing knowledge have been specially crafted to highlight these potential differences Ambiguity Options The REDUCE_AMBIGUOUS_KNOWLEDGE option tells Biofilter which heuristics if any should be employed to mitigate ambiguity in the prior knowledge database The permissible values for this option are the name of any of the heuristic strategies or no or any When set to no then no attempt is made to reduce ambiguity and all genes which are implicated by any of the provided identifiers are considered equally likely interpretations When set to any then all heuristics are attempted simultaneously and the winner s from each one collectively become the preferred choices The ALLOW_AMBIGUOUS_KNOWLEDGE option tells Biofilter what to do when it has more than one best guess interpretation for an ambiguous member o
15. strategy can be simplified Biofilter 2 0 will automatically generate gene models prior to generating SNP models and there is no need to specify that step separately It is possible to generate the SNP models with a single command Configuration KNOWLEDGE test db SNP 11 12 13 14 15 16 17 18 19 MODEL snp Output snpl snp2 score src grp rs11 rs15 2 3 rs11 rs16 2 3 rs12 ES 2 3 rs12 rale 2 3 52 Appendix 1 Ambiguity in Prior Knowledge When an ambiguous gene or group identifier appears in a user input file Biofilter has two straightforward options either include all genes or groups with which the identifier is associated or none of them When processing the bulk downloads from prior knowledge sources however the situation can become more complicated This is due to the fact that in many cases the data provided by a source is formatted in a way which allows multiple identifiers to be provided for the same member of a group Ideally all such identifiers are known to refer to the same single gene but occasionally this is not the case Sometimes one of the identifiers is an alias of more than one gene making it inherently ambiguous other times even if every identifier refers to only one gene they might not all agree on which gene that is The testing knowledge included with Biofilter contains several examples of these kinds of situations depicted in the diagram
16. will assume strict ambiguity options We can then simplify the diagram of the knowledge by showing associations between groups and genes without the messy intermediate layer of aliases in the resulting diagram below the dotted lines indicate associations which will be ignored by default but may appear if the ambiguity settings are changed rosoe group a a aoum EHS inks SR ambiguous inks genes As regions MH cteomcacimes Oss Iesel In order to reproduce the following examples using your own copy of Biofilter you must run the loki build py script using the test data option refer to the Installation amp Setup section for details 34 Example Commands Filtering Examples Example 1 Filtering a list of SNPs by a genotyping platform where inputl is the first list of SNPs and input2 is the list of SNPs on the genotyping platform Input files input2 snp rs14 rsl rsl rsl rsl rsl VO OAD UI Configuration SNP SNP KNOW EDGE test db FILE inputl input2 FILE FIL TER S np Output sn rs9 rsl rsl rsl D 4 5 6 Note The lists of input SNPs are checked against a dbSNP list of SNP ID s that have been merged and any outdated RSIDs are updated with the new RSID In the example knowledge rs9 has been merged into rs19 this is why rs9 appea
17. 38 Example 6 Start with genes associated with a pathway or group output genes within that group that overlap with an input list of genes Configuration KNOWLEDGE test db GENE POR FILTER gene snp region group source Output gene snp chr region start stop group source Q rs33 3 Q 28 36 orange spectrum Q rs33 3 Q 28 36 indigo spectrum R rs35 3 R 52 orange spectrum R rs35 3 R 52 indigo spectrum Example 7 Starting with a list of genes determine genes are within a group Configuration KNOWLEDGE test db GENE ACEH PQR GROUP cyan FILTER gene group Output gene group A cyan Cc cyan Annotation Examples Example 1 Annotating a SNP with gene region information Configuration KNOWLEDGE test db SNP rs11 rs24 rs99 im ANNOTATE snp region Output snp rs11 rs24 rs24 rs99 chr al 2 2 region A H st 8 22 38 art stop 42 48 sources Come alases Qos O sitter inks o mella ime emer ca mmm Dimmoenres O SNPs Otona Example 2 Annotating SNPs with location information A user can provide Biofilter with a list of SNPs as an input and map those SNPs to the corresponding chromosome and base pair location if any as shown in the example below Configuration KNOWLEDGE test
18. 8 52 red light B rs13 B 28 52 green light B rs13 B 28 52 gray light 48 B rs14 B 28 52 red light B rsl14 B 28 52 green light B rsl14 B 28 52 gray light B rs15 B 28 52 red light B rs15 B 28 52 green light B rs15 B 28 52 gray light E rsi5 E 54 62 blue light rsl15 C 54 62 gray light rsl15 C 54 62 cyan paint rsl6 C 54 62 blue light C rsl6 C 54 62 gray light 6 rsl6 C 54 62 cyan paint D rsl6 D 58 72 gray light D rsl17 D 58 72 gray light E rs18 E 78 82 gray light E rs19 E 84 92 gray light Modeling Example Here we present an example with two sources and eight pathways shown in the below figure to explain how Biofilter can generate pairwise SNP SNP and Gene Gene models In further sections we explain other options for how model generation can be performed in Biofilter 2 0 OSNPs unval 49 Step 1 Map the input list of SNPs to genes within Biofilter for this example we will use all of the SNPs on the first chromosome Note that Gene F does not contain any SNPs Configuration KNOWLEDGE test db SNP 11 12 13 14 15 16 17 18 19 FILTER gene Output Step 2 Connect pairwise the genes that contain SNPs in the input list of SNPs Configuration KNOWLEDGE test db GENE ABC DE MODEL
19. 9417 62977 62977 48880 48880 35719 35719 50159 50098 31225 31225 33036 33036 15446 5446 18065 8065 7572 7545 268 268 1523 523 25016 24131 101047 01047 105084 98839 27062 27062 ambiguous 2270 The labels in the first column are the identifier types themselves these are the values which can be used with the GENE_IDENTIFIER_TYPE option or in the first column of a two column gene list input file The second column shows the total number of distinct identifiers of that type which are found in the prior knowledge database file for example there are 91 687 different symbol 29 identifiers which are symbolic abbreviations of genes i e A1 BG The second and third columns break that total down into the number which are associated with only one gene unique identifiers and the number which are associated with multiple genes ambiguous identifiers The names of the identifier types are defined by LOKI and generally correspond to the organization or project which assigns that type of name followed by the particular kind of thing being named For example entrez_gid refers to the numeric gene numbers assigned by NCBI s Entrez Gene database while ensembl pid refers to protein identifiers assigned by Ensembl LD Profiles Report This report lists the LD profiles available in the knowledge database If LD Spline has not been used to calculate LD adjusted gene boundaries then only the default profil
20. Biofilter User s Guide version 2 2 The information contained in this document is the sole property of the lab of Dr Marylyn Ritchie Unauthorized reproduction is prohibited Last updated May 21 2014 Table of Contents IEPGOUCHION ii a hie 6 What iS Bro iaa 6 Why Use BR aad ea 6 Library of Knowledge Integration LOKI eneen 6 KO Wed SES OUT CES E 7 Data Iypesiuaniaii doce palas 8 Eh Ee EE 9 re 9 ee AAA PP i i i iid ii iiia iaiia iiaiai 9 A on O O OS E cesnelebusauiedivasaisivssddbeleesubeitessvhetteesdistiees 10 Primary and Alternate Input Datasets sii ci 10 A A aio 11 installation amp SQUID cosita Eege EE 12 ee EE 12 A a A A AN EA E A 12 Installing aen 12 Compiling Prior Knowledge ui EE a a a 12 LOKI Build SCFIPEOPONAS lt A EEN 13 Updating Archiving Prior Knowledge 14 LO Profiles tido 15 A O OaS 16 Configuration Optio Acad 16 E Eent 16 VETO JM ERIN ad 16 report configuration REPORT CONFIGURATION cnica 16 report replication fingerprint REPBORT REDLICATION HINGERDRINT ENEE 17 Prior Knowledge OPINAS olas 17 sknowWwledge KNOWLEDGE 0 A aa 17 report genome build REPORT_GENOME_ B UlD Dni as 17 report gene name stats REPORT_GENE_NAME STATS cines 17 report group name stats REPORT_GROUP_NAME STATS cnica as 17 allow unvalidated snp positions ALLOW_UNVALIDATED_SNP_POSITIONS EEN 17 allow ambiguous knowledge ALLOW_AMBIGUOUS KNOWLEDGE cnica 17 reduce ambiguous knowledge REDUCE_AMBIGUO
21. E coin ba aah aaa ia ai e 22 alt group search ALT_GROUP_SEARCH iii 22 A ESDUTCE f ALT SOURGE it 22 alt source file ALT_SOURCE_FILE as 22 Positional Matching Optio 22 region position margin REGION_POSITION_MARG N inician as 22 region match percent REGION MATCH PERCENT ici 22 region match bases REGION_MATCH BASES ii as 23 lee HEEM Melle ele E 23 maximum model count MAXIMUM_MODEL_COUNT usssssssssscssssssssssessssssssssseessssesssnsesssnseessnstessnatesssnsesssneessntessnaestsy 23 alternate model filtering ALTERNATE_MODEL HUTERING ocaciones 23 all pairwise models ALL_PAIRWISE_MODELS ninia 23 maximum model group size MAXIMUM_MODEL_GROUP SIE 23 minimum model score MINIMUM_MODEL SCORE ENEE 23 sort models SORT MODELS oi aa anni a a a a d a E 23 Output Options manisna a aa ai aa ail 24 JU QUITE EE 24 yerbose VERBOSE iratra a i i a aiia 24 ee HUET J PREFIX An 24 overwrite OVERWRITE oia liar 24 SAA eo q P o e Po PO On sisneecteseecdesasstsleniased 24 report invalid input REPORT_INVALID INPUT nia 24 selten TER a a aaa iain 24 annotate J ANNO TE dd 24 MOTEL MODEL tirita 24 A EE 25 Configuration EE 25 SNP List Input EE 26 Position Data np dai 26 Region Data Input Piles A A ania EEN 27 Gene and Group List Input Filles ENEE 27 Source List Input Files sin AA AAAS 28 OUtput File E E 29 Configuration REPO Ei ias 29 Gene and Group Name Statistics RepOrtS miii rr 29 LD
22. ERIFY_SOURCE_FILE Arguments lt source gt lt file gt lt date gt lt size gt lt md5 gt Default none Ensure that the knowledge database file was generated with the specified source data file Can be used multiple times to specify different files or files for different sources This option is added automatically to configuration files generated with REPORT_REPLICATION_FINGERPRINT Primary Input Data Options snp SNP Arguments lt snp gt snp Default none Adds or intersects the specified set of SNPs to or with the primary input dataset SNPs must be provided as integer RS numbers with an optional rs prefix 18 snp file SNP_FILE Arguments lt file gt file Default none Adds or intersects the set of SNPs read from the specified files to or with the primary input dataset Files must contain a single column formatted as in the SNP option position POSITION Arguments lt position gt position Default none Adds or intersects the specified set of positions to or with the primary input dataset Positions must be provided as 2 to 4 fields separated by colons chr pos chr label pos or chr label ignored pos Chromosomes may have an optional chr prefix position file POSITION_FILE Arguments lt file gt file Default none Adds or intersects the set of positions read from the specified files to or with the primary input dataset Files must
23. P_POSITIONS Argument yes no Default yes Allows Biofilter to make use of all SNP position mappings available in the knowledge database even ones which the original data source identified as un validated When disabled only validated positions are considered allow ambiguous knowledge ALLOW_AMBIGUOUS_KNOWLEDGE Argument yes no Default no Allows Biofilter to make use of all potential gene group mappings in the knowledge database even if the gene was referred to with an ambiguous identifier This will likely include some false positive associations but the alternative is likely to miss some true associations reduce ambiguous knowledge REDUCE_AMBIGUOUS_KNOWLEDGE Argument no implication quality any Default no Enables a heuristic algorithm to attempt to resolve ambiguous gene group mappings in the knowledge database Providing this option with no argument is the same as using any which applies all heuristic algorithms at once 17 report ld profiles REPORT_LD_PROFILES Argument yes no Default no Generates a report of the LD profiles available in the knowledge database See Appendix 1 for details on generating LD profiles using LD Spline ld profile LD_PROFILE Argument Idprofile Default none Specifies an alternate set of gene region boundaries which were pre calculated by LD Spline to account for a population specific linkage disequilibrium profile When omitted or supplied with no argument the defau
24. Profiles Report ai 30 IVA Rene E e 30 Analysis RE EE 30 Example KnoWilcdee Seege eege EE ee E EE 33 Example Command EE 35 ENEE Eeer 35 Example 1 Filtering a list of SNPs by a genotyping platform where inputl is the first list of SNPs and input2 is the list of SNPs on the genotyping platform EEN 35 Example 2 Output a list of SNPs from a genotyping platform that correspond to a list Of genes uses 36 Example 3 Input a list of groups output regions within those groups ENEE 37 Example 4 Output a list of all genes within a data source miii es 37 Example 5 Start with a list of genes output all the genes within particular groups EE 38 Example 6 Start with genes associated with a pathway or group output genes within that group that Overlap With Gn input LIS Of Oe ba EA 39 Example 7 Starting with a list of genes determine genes are Within a group EEN 39 Annotation EXAMPLES iu A A AA dade ens aia iiaeaa 39 Example 1 Annotating a SNP with gene region Iniormogtion ENEE 39 Example 2 Annotating SNPs with location information miii es 40 Example 3 Map a SNP to the groups and sources where the SNP is present cocinan 41 Example 4 Annotating a base pair region with the list of SNPS in that region coccion 41 Example Filtering followed by annotation miii nunn nnntennnant 42 Example 1 Input a SNP list and Map SNP positions tO regtone ENEE 42 Example 2 Map SNPs to groups and filter on the source ENEE 42 Example 3 Testing overlap of SNP and region l
25. US KNOWLEDGE ENEE 17 report Id profiles REPORT_LD_ PROFILES nicas 18 IG DFOJ O 4 GD PROMETE aa dai 18 verify biofilter version VERIFY _BIOFILTER VERSI N EEN 18 verify loki version VERIFY_LOKT VERSION ninia 18 verify source loader VERIFY SOURCE LOADER EEN 18 verify source option VERIFY SOURCE OPTION iii 18 verify source file VERIFY SOURCE FILE cnica 18 Primary Input Data i Lee E 18 ESTU Y NAAA A een a A a A ae ea ee 18 JUE Y INP E ata 19 DISTA POSITION ici 19 position file POSITION FILE as 19 ET OTLON RECON tiza 19 region file REGION FILE canina aaa 19 sene TE 19 SE E E 19 gene identifier type GENE IDENTIFIER TYPE cnica 19 allow ambiguous genes ALLOW_AMBIGUOUS_ GENES inician 20 gene search GENE SEAR CR nas 20 JEDUP Y AROMA a aaa 20 lt Qroup file GROUP Hb A A tt ta a at 20 group identifier type GROUP_IDENTIFIER TYPE ninia 20 allow ambiguous groups ALLOW_AMBIGUOUS GROUPS ENEE 20 group search GROUP SEARCH mas 20 Source FIS UREA Ee 20 SOUT Ce le y SOURCE FILE iaa 20 Alternate Input Data Opti Ons iii dei 21 SE E 21 DESTE J ALT EE 21 alt position Ald POSITION ssania a A AR 21 alt position file AUT POSITION FILE nicas 21 Olt regi n ALL REGION ii alacena 21 alt region file ALT_REGION HILE ias 21 U EJONE E 21 s alt gene fil E EEN 21 alt gen search ALT GENE SEARCH ni a at 22 lt alt group EEN 22 alt group file ALT GROUP FIL
26. ai Ac 54 Example A ici 54 Example 2 MOJEN CG aci init li ria aaa 55 Example 3 EE 55 Example 4 gray bl ee EE EE EE 55 ASAS EE 56 Protein Ambiguity EXAM Pls sisisi aaaeaii taandada araia aiaiai adasia iaaa aaia 57 ETH 57 Ex mple 2 Inge ees e eebe ges EE EE Ee Ee eet ee 57 FENN UE 57 Appendix 2 LD AU 58 Installing LD bo UE 58 Generating LD Prol da 58 Population Butld SCript DPS A i ii conde iii iai aaa 59 Introduction What is Biofilter Biofilter is a software tool that provides a convenient single interface for accessing multiple publicly available human genetic data sources These sources include information about the genomic locations of SNPs and genes as well as relationships among genes and proteins such as interaction pairs pathways and ontological categories Biofilter will cross reference all of this prior biological knowledge in several different ways with any number of combinations of input data Why use Biofilter While genome wide association studies GWAS have been used to identify genetic variants that contribute to disease susceptibility on a single variant single phenotype level other approaches can be used to investigate the association between genetic and phenotypic variation Use of the software tool Biofilter is one such example of a complementary but alternate approach Biofilter allows users to work with a range of types and formats of data including SNPs copy number variant CNV and gene location in
27. alysis the primary and alternate input datasets are used separately on the two sides of the annotation For example if a user annotates SNPs with genes then the primary input data is used to limit which SNPs are annotated at all while the alternate input data is used to limit which genes can be considered for annotation Put another way this means that if a SNP cannot be linked with the primary input data then it will not appear at all in the annotation output even with blank annotation columns likewise if a gene cannot be linked with the alternate input data then it will not appear as an annotation for any SNP even if its genomic region does contain the SNP s position In a modeling analysis the primary and alternate input datasets are used similarly to annotation with one extra option By default both parts of a model must match the primary input data in order for that model to be generated If there is any alternate input data then one of the two parts of the model must also match the alternate input For example the user could provide SNP list A as primary input and SNP list B as alternate input and then request SNP models Biofilter would then only generate SNP SNP models in which both SNPs appear in list A and at least one of them also appears in list B With the ALTERNATE_MODEL_FILTERING option the effect of the primary input is relaxed a bit so that it only applies to one part of the model while the alternate input applies to the ot
28. and ending base pair positions and many alternate names and cross referenced database identifiers This data is used to connect gene symbols to their genomic regions and to connect equivalent gene symbols and identifiers to each other Gene Ontology http www geneontology org The Gene Ontology database defines terms representing gene product properties such as cellular components molecular function and biological processes within a hierarchical tree of ontology groups and related proteins NHGRI GWAS Catalog http www genome g OV gwastudies The NHGRI GWAS Catalog provides associations between SNPs and various phenotypes which were discovered via genome wide association studies GWAS MINT http mint bio uniroma2 it mint Welcome do The Molecular Interaction database contains experimentally verified protein protein interactions from the scientific literature which are used in Biofilter for linking position and region data to interacting protein pairs NetPath http www netpath org The NetPath database consists of curated human signaling pathways which are used by Biofilter OregAnno http www oreganno org oregano The Open REGulatory ANNOtation database is used by Biofilter for curation information about known regulatory elements from the scientific literature Pfam http pfam sanger ac uk The Pfam database is a large collection of protein families The annotation of
29. ch data can be cross referenced within Biofilter For example a SNP or RS number and a gene have no direct relationship but a SNP may have a known genomic position or several and that position may lie within a known region which is associated with a particular gene To complete the chain a gene may be associated with one or more groups of various types interactions pathways etc and each of those groups was provided from a particular external data source Analysis Modes Biofilter has three primary analysis modes which each make use of the available biological knowledge in slightly different ways Filtering The most straightforward of Biofilter s primary functions is as the name implies filtering Given any combination of input data Biofilter can cross reference the input data using the relationships stored in the knowledge database to generate a filtered dataset of any supported type or types For example a user can provide a list of SNPs such as those covered by a genotyping platform and a list of genes such as those thought to be related to a particular phenotype and request a filtered set of SNPs Biofilter will use LOKI s knowledge of SNP positions and gene regions to filter the provided SNP list removing all those that are not located within any of the provided genes The output data type does not necessarily have to be the same data type s provided as input For example a user can provide a list of SNPs and a l
30. ch is typically alongside Python itself The installation can also be done in a different location by using the prefix or exec prefix options If you wish to use LD profiles add the Idprofile option in order to compile and install Idspline see Appendix 2 Compiling Prior Knowledge The LOKI prior knowledge database must be generated before Biofilter can be used This is done with the loki build py script which was installed along with Biofilter There are several options for this utility which are detailed below but to get started you just need knowledge and update loki build py verbose knowledge loki db update This will download and process the bulk data files from all supported knowledge sources storing the result in the file loki db which we recommend naming after the current date such as loki 20140521 db The update process may take as few as 4 hours or as many as 24 depending on the speed of your internet connection processor and filesystem and requires up to 30 GB of free disk space 10 20 GB of temporary storage C TEMP on Windows tmp on Linux etc plus another 5 10 GB for the final knowledge database file 12 By default the LOKI build script will delete all sources bulk data downloads after they have been processed If the knowledge database will be updated frequently it is recommended to keep these bulk files available so that any unchanged fil
31. combined with MAXIMUM_MODEL COUNT this guarantees that only the highest scoring models are output When disabled models are output in an unpredictable order 23 Output Options quiet QUIET Argument yes no Default no When enabled no warnings or informational messages are printed to the screen However all information is still written to the log file and certain unrecoverable errors are still printed to the screen verbose VERBOSE Argument yes no Default no When enabled informational messages are printed to the screen in addition to warnings and errors prefix PREFIX Argument lt prefix gt Default biofilter Sets the prefix for all output filenames which is then combined with a unique suffix for each type of output The prefix may contain an absolute or relative path in order to write output to a different directory overwrite OVERWRITE Argument yes no Default no Allows Biofilter to erase and overwrite any output file which already exists When disabled the default Biofilter exits with an error to prevent any existing files from being overwritten stdout STDOUT Argument yes no Default no Causes all output data to be written directly to the screen rather than saved to a file On most platforms this output can then be sent directly into another program report invalid input REPORT_INVALID_INPUT Argument yes no Default no Causes any input data which was not understood by Bi
32. d false negatives and the interpretation most appropriate to the task can be selected by the user at run time This is covered in greater detail in a later section but it is important to bear in mind that ambiguity will be a part of relating and cross referencing data across multiple independent sources Biofilter s results can change depending on the users choice for handling ambiguity 11 Installation amp Setup Prerequisites The following prerequisites are required to compile the LOKI database and run Biofilter e Python version 2 7 or later e Python module apsw Another Python SQLite Wrapper e SQLite version 3 6 or later Note that the dependency on SQLite may be satisfied via the apsw Python module since it often comes with an embedded copy of the necessary SQLite functionality However if LD Spline will be used see below then the SQLite development files will also be required and these are not packaged with apsw In either case if in doubt consult your system administrator Platforms Biofilter was developed in Python and should therefore run on Linux Mac OS X or Windows Installing Biofilter Biofilter can be downloaded from www ritchielab psu edu To install it onto your system simply use Python to run the included setup py script with the install option python setup py install This will place the Biofilter and LOKI files in your system s usual place for Python based software whi
33. data respective to proteins within Biofilter is based on the information from Pfam PharmGKB http www pharmgkb org Biofilture currently uses this database for pathway based data future releases of Biofilter will also include gene drug associations and pharmacological association study results Reactome http www reactome org ReactomeGWT entrypoint html Biofilter uses the information contained in Reactome to establish pathway and network relationships between genes UCSC genome browser http genome ucsc edu This source provides access to a growing database of genomic sequence and annotations for a wide variety of organisms currently we use the UCSC for location information for evolutionary conserved regions ECRs for Biofilter and to acess OregAnno s regulatory region data Data Types Biofilter can work with and understand the relationships between six basic types of data Specified by an RS number i e rs1234 Used to refer to a known and documented SNP whose position can be retrieved from the knowledge database SNP Specified by a chromosome and basepair location i e chr1 234 Position Used to refer to any single genomic location such as a single nucleotide polymorphism SNP single nucleotide variation SNV rare variant or any other position of interest Specified by a chromosome and basepair range i e chr1 234 567 Used to refer to any genomic regi
34. e 0 6 CEU DP0 70 CEU population from HapMap with dprime cutoff 0 7 dprime 0 7 CEU RS0 80 CEU population from HapMap with rsquared cutoff 0 8 rsquared 0 8 CEU RS0 90 CEU population from HapMap with rsquared cutoff 0 9 rsquared 0 9 YRI DP0 60 YRI population from HapMap with dprime cutoff 0 6 dprime 0 6 YRI DP0 70 YRI population from HapMap with dprime cutoff 0 7 dprime 0 7 YRI RS0 80 YRI population from HapMap with rsquared cutoff 0 8 rsquared 0 8 YRI RS0 90 YRI population from HapMap with rsquared cutoff 0 9 rsquared 0 9 Population Build Script Options help Displays the program usage and immediately exits populations A comma separated list of 3 letter HapMap population identifiers i e CEU JPT YRT etc rsquared A comma separated list of R threshold values between O and 1 for which to generate LD profiles dprime A comma separated list of D threshold values between 0 and 1 for which to generate LD profiles liftover The location of UCSC s liftOver utility which is needed to convert HapMap s LD measurements to the current reference genome build If omitted liftOver must be available on the path ldspline The location of the LD Spline utility which will be installed by the Biofilter installer 1f given the Idprofile option If omitted Idspline must be available on the path poploader The location of the pop_loader helper script which will be installed by the Biofilter insta
35. e preferable to provide the regions directly rather than relying on gene identifiers If a single identifier matches more than one gene or group Biofilter will ignore it unless the appropriate ALLOW_AMBIGUOUS_GENES or ALLOW_AMBIGUOUS_GROUPS option is used Examples gene THSD7A OSBPL3 RBMS 3 namespace name extra symbol THSD7A first gene entrez gid 26031 second gene ensemble gid ENSG00000144642 third gene Source List Input Files Since the knowledge sources in LOKI all have single unique names there are no identifier types to consider Source input files simply contain a single column with the name of a source on each line Note that sources play a slightly different role in Biofilter than in LOKI When building the prior knowledge database every source is relevant because they all contribute a different set of knowledge to the final product many sources provide groupings of genes or proteins pathways interactions etc while others provide information about genes or SNPs themselves such as their regions or boundaries alternate names etc In Biofilter however sources are only considered in connection with groups providing a source list to focus a Biofilter analysis is therefore exactly the same as providing a group list which includes every group from the source s in the source list In particular the sources which LOKI used to define basic SNP and gene information such as dbsnp or
36. e will not be that gene s region as one might hope it will instead be the user provided input region which matched the gene s region Biofilter provides additional output options to deal with situations such as these The six basic types will suffice for most use cases but they are actually only shorthand for their respective sets of individual output columns For more particular use cases there are a few additional shorthand types such as generegion and any single output column may also be requested individually This includes each separate column from any of the six data type outputs such as region _chr which is the first of four columns included in the region output type as well as some columns which are not included in any of the shorthand sets Biofilter currently supports the following outputs snp Shorthand for snp_label snp id The SNP s RS number with no prefix if an input SNP was merged the current new RS number is shown snp label The SNP s RS number with rs prefix if an input SNP was merged the user provided old RS number is shown snp extra Any extra columns provided in the SNP input file position Shorthand for position_chr position_label position_pos position id An arbitrary unique ID number for the position can be used to distinguish unlabeled positions with identical genomic locations position label The provided or generated label for an input positi
37. e with canonical gene boundaries will be shown Invalid Input Reports If the REPORT_INVALID_INPUT option has been enabled then any user input data which cannot be parsed or understood by Biofilter will appear in one of these report files A separate file is generated for each type of input SNP position region etc and for each invalid input line that entire line will be copied to the corresponding report file preceded by a comment line describing the error For example the SNP input file on the left will yield the invalid SNP report file on the right snp invalid literal for long with base 10 chr5 678 rs12 chr5 678 rs34 chr5 678 rs90 One of the inputs was not understood as a valid RS number but the other three were parsed successfully and added to the input dataset Analysis Outputs Filtering annotation and modeling analyses always return one or more tab separated columns but the number and contents of those columns can vary Each analysis mode allows the user to exactly specify the desired output columns In the simplest case the user can request one of the six data types which Biofilter also takes as input SNP position region gene group or source The output will then contain one or more columns describing the specified data type in exactly the same format as Biofilter requires for input of the same type For example SNP output produces a single column of RS numbers position output produce
38. ed by only one identifier but cannot choose between F and G because they are implicated by two identifiers each EF and FG or FG and G With no heuristics as always ALLOW_AMBIGUOUS_KNOWLEDGE will either include every possibility or none of them With the implication heuristic it can either include both F and G or nothing and with the quality heuristic it has no effect Example 4 gray black The gray black group is an example of ambiguity which cannot be resolved by either heuristic genes F and G are entirely comparable both being referenced by one specific identifier plus one shared ambiguous identifier No matter which heuristic is used if any this group will always contain both F and G if ALLOW_AMBIGUOUS_KNOWLEDGE is enabled or neither if it is disabled 55 Protein Identifiers So far our depiction of ambiguity in the knowledge database has implied that groups always contain genes This allows for the convenient assumption that when we are given more than one identifier for something in a group we are expecting all of those identifiers to refer to one and only one gene The reality is of course a little more complicated some sources provide groups which actually contain proteins In order to make this knowledge compatible with the rest of the prior knowledge LOKI must translate these protein references into genes but this breaks that convenient assumption If a group contains genes then we can reaso
39. enerated before the LD adjustment can be done refer to the Biofilter installation instructions for details on this procedure Once the knowledge file is available use the buildPopulations py script to generate additional LD profiles For example buildPopulations py db loki db populations CEU YRI dprime 0 6 0 7 rsquared 0 8 0 9 This will generate 8 additional LD profiles for use in LOKI and Biofilter four each for the CEU and YRI populations of which two represent the LD pattern using D thresholds of 0 6 and 0 7 and the other two use the R metric with thresholds of 0 8 and 0 9 Note that building LD profiles may take quite some time plan for at least 2 hours per population when run on a local disk or twice that on a networked filesystem such as GPFS The build process also requires 2 GB of RAM and some temporary disk space in the working directory allow for 10 GB plus another 10 GB per population With the modified knowledge database file Biofilter can then make use of the alternate gene regions via the LD_PROFILE option biofilter py knowledge loki db 1d profile CEU RSO 80 58 The report ld profiles option can be used to list the LD profiles available in a LOKI database file biofilter py knowledge withld db report 1d profiles ldprofile description metric value no LD adjustment CEU DP0 60 CEU population from HapMap with dprime cutoff 0 6 dprim
40. entrez are not relevant to Biofilter since those sources generally do not define any groupings of genes consequently using any of those sources as inputs to Biofilter will generally result in no output 28 Example source netpath Output File Formats Configuration Report The format of a configuration output file is by design identical to a configuration input file The details of that format can be found in the corresponding section of the previous chapter Note however that the INCLUDE instruction is not relevant for configuration output files because the structure of inclusions is not preserved internally This means that even if the configuration file s provided to Biofilter include other configuration files the report generated by the REPORT_CONFIGURATION option will not contain any INCLUDE instructions Instead all options from all included files will be merged into a single reported configuration Gene and Group Name Statistics Reports These reports list all of the types of identifiers available for genes or groups respectively along with some statistics about their overall uniqueness For example this is the gene name statistics report at the time of writing type symbol entrez gid refseq gid refseq pid ensembl gid ensembl pid hgne_id mim id hprd_id vega_id rgd_id mirbase id unigene gid uniprot gid uniprot pid pharmgkb gid names unique 91687 8
41. es Any option which can be used on the command line can also be used in a configuration file Each option must appear as the first item on a line and any arguments to that option must be separated by whitespace any number of tabs or spaces If an argument to an option must itself contain spaces for example a multi word gene or group identifier the argument may be enclosed with double quotes to prevent the additional words in the argument from being interpreted as a separate arguments If an argument must itself contain double quotes they must be escaped with a backslash like soh There is also one extra option which may only be used in a configuration file INCLUDE This option requires one or more filename arguments and causes Biofilter to read each specified file as an additional configuration file Included files are processed in full before any other options in the original configuration file For example if file A includes file B and both files specify the same option then the option s setting or value from file A will always override the one from file B even if it appears before the INCLUDE instruction Included configuration files may also include further files there is no limit to this recursion except that any loops 1 e A includes B which includes A will raise an error This example configuration file was generated by the REPORT_CONFIGURATION option with everything else left at default values E Biofilter
42. es will not need to be downloaded again This can be accomplished with the archive option LOKI Build Script Options help Displays the program usage and immediately exits version Displays the software versions and immediately exits Note that LOKI is built upon SQLite which will also report its own software versions knowledge Argument lt file gt Default none Specifies the prior knowledge database file to use archive Argument lt file gt Default none Shorthand for specifying the same file as both the from archive and to archive from archive Argument lt file gt Default none An archive of downloaded bulk data from a previous run of the LOKI build script The bulk data files available for download from each source will be compared against those found in the archive and only files which have changed will be downloaded If not specified the script will start from scratch and download everything to archive Argument lt file gt Default none A file in which to archive the downloaded bulk data for a later run of the LOKI build script If not specified the script will reclaim disk space by deleting all original data after processing it temp directory Argument lt directory gt Default platform dependent The directory in which to unpack the from archive if any and then download new bulk data If not specified the system s default temporary directory is used list so
43. f a group If no heuristics were used then this occurs for all cases of ambiguity but it should also be noted that any heuristic strategy might be only partly successful For example if a given set of identifiers collectively refer to three different genes and the heuristic s can only eliminate one of them then the other two remain equally likely possibilities In cases like this the user s choice for ALLOW_AMBIGUOUS KNOWLEDGE determines the result when disabled the strict option none of the possible genes will be considered a member of the group but when enabled the permissive option the most likely possibilities will all be included without any of the less likely possibilities Gene Ambiguity Examples Example 1 cyan The cyan group is a typical case of ambiguity which can be fully resolved by either of the heuristic strategies Its first two members genes A and C are unambiguous and will always be included but the correct third member of the group is open to interpretation The implication heuristic will declare D as the correct interpretation since it is implicated by both of the provided identifiers while gene E is only implicated by one of them 54 The quality heuristic will also choose D but its reasoning is a little more involved The DE identifier refers to two different genes so it gets a quality score of 1 2 or 0 5 the D identifier on the other hand gets a quality score of 1 because it refers to
44. formation along with a repository of diverse biological knowledge distilled from multiple external databases Via Biofilter users can annotate data or results with relevant biological knowledge for analysis and interpretation Biofilter also allows users to filter data based on biological criteria allowing users to harness information from multiple sources for the reduction of data for analysis Finally Biofilter can be used to generate biological information derived pairwise interaction models for reducing the computational and statistical burden of large scale interaction data analysis while also providing a biological foundation to support the relevance of statistically significant results The use of Biofilter may help to elucidate a new picture of the relationship between genetic architecture and complex phenotypic outcomes such as the presence or absence of disease Library of Knowledge Integration LOKI Rather than issuing queries in real time to a series of external databases Biofilter consults a local database called the Library of Knowledge Integration or LOKI This local repository contains all the knowledge from bulk downloads of the raw data from each external source LOKI must be generated on the local ae i S e dbSnP a Pfam system before Biofilter can be used NCBI Entrez Gene but because the resulting knowledge P C se database is a single local file Biofilter EE d Gen EN KS
45. gene s descriptive text from the knowledge database if any gene_identifiers All known identifiers for the gene of any type formatted as type name type name gene symbols All known symbol type identifiers symbolic aliases for the gene formatted as symbol symbol gene extra Any extra columns provided in the gene input file upstream Shorthand for upstream_label upstream_distance upstream id An arbitrary unique ID number for the closest upstream gene upstream label The primary label for the closest upstream gene upsteam distance The distance to the closest upstream gene upsteam start The closest upstream gene s basepair start location upsteam_ stop The closest upstream gene s basepair stop location downstream Shorthand for downstream_label downstream_distance downstream id An arbitrary unique ID number for the closest downstream gene downstream label The primary label for the closest downstream gene downstream distance The distance to the closest downstream gene downstream start The closest downstream gene s basepair start location downstream stop The closest downstream gene s basepair stop location group Shorthand for group_label group_id An arbitrary unique ID number for the group can be used to distinguish groups with identical labe
46. her In this case Biofilter would generate SNP SNP models where one SNP is in list A and the other SNP is in list B Identifiers Any given gene or group might go by many different names in different contexts and Biofilter LOKI accommodate this For example a single gene let s say alpha 1 B glycoprotein might have one ID number assigned by NCBI s Entrez Gene database 1 a different identifier assigned by Ensembl ENSG00000121410 another one from HGNC 5 plus any number of symbolic abbreviations AIBG AIB ABG GAB HYST2477 Just as a single gene can have more than one name there are also names which are known to be associated with more than one gene these names are considered ambiguous For example although AIB is an alias of the gene A BG it is also an alias of the gene SNTB1 syntrophin beta 1 Therefore if AJB appears in an input gene list file Biofilter will not inherently recognize which gene the user intended to include Likewise if AZB were to appear within the bulk biological data downloaded for LOKI then Biofilter might not recognize which gene is actually part of some pathway Rather than attempting to compromise on a one size fits all approach to this ambiguity Biofilter and LOKI support multiple interpretations of any ambiguity that was encountered while compiling the knowledge database Each of these interpretations comes with a slightly different trade off between false positives an
47. hr region start stop rs14 B B 28 52 rs15 B B 28 52 rs15 C 54 62 rsl6 C 54 62 rsl6 D D 58 72 Example 10 Find overlapping SNPs between the two lists and map the overlapping SNPs to the genes regions groups and the sources Configuration KNOWLEDGE test db SNP rs11 rs12 rs13 rs14 rs15 rsl6 SNP rs14 rs15 rs16 rs17 rs18 rsl19 FILTER snp gene region group source ene Doc D DD D D DO K Wu OH On On On OO OD H Chr region UJ Doc D DD D D stop 52 52 52 52 62 62 62 62 62 62 72 group red green gray red green gray b LUE gray cyan bl ue gray cyan gray Source ligh ligh ligh ligh ligh ligh ligh ligh pain ligh ligh pain ligh t EE Cf Gh ch ech ck eh a Gh et a EE Example 11 Mapping regions to genes using Biofilter based on percent of overlap Regions such as copy number variations can be mapped to genes using Biofilter carried out based on percent of overlap of the genes with the CNV region or based on the number of base pairs overlapped For reference here are the boundary positions for the genes in chromosome 1 chr gene start stop A 8 22 B 28 54 C 54 62 D 58 72 E 78 82 E 84 92 F 94 98 Co
48. ins several examples of groups with protein identifiers CD group aliases O groups group members protein aliases GB gene aliases O genes 56 Protein Ambiguity Examples Example 1 orange The orange group contains a simple unambiguous use of protein identifiers No matter what options are used this group will always contain the genes P Q and R Example 2 indigo The indigo group demonstrates a more complicated but still unambiguous situation The two protein identifiers agree with each other so the group will always contain the genes P Q and R no matter what options are used However there is an extraneous gene identifier which is ignored even though it does not appear to match the protein identifiers In practice this is rarely the case when a source provides both protein and gene identifiers the latter usually agree with the former Example 3 violet In the violet group the two protein identifiers only partly agree both of them correspond to genes Q and R but one of them also matches P while the other also matches S If ALLOW_AMBIGUOUS_KNOWLEDGE is enabled then all four genes will be included in the group If it is disabled then any heuristic strategy will include genes Q and R but not P or S If no heuristics are used either then the group will appear empty 57 Appendix 2 LD Profiles Each LD profile is defined by two things a reference population whose particular LD pat
49. ist of groups and request the set of genes that match both lists In this case there is no input set of genes to use as a starting point so Biofilter will check all known genes found in the knowledge database The result is a list of only the genes which include at least one of the specified SNPs and are a part of at least one of the specified groups Finally filtering is not limited to a single data type Biofilter can also identify all of the unique combinations of data types which jointly meet the provided criteria For example given a list of SNPs and genes Biofilter can produce a filtered set of SNP gene pairs The result is every combination of SNP and gene from the two lists where the SNP is within the gene Annotation Biofilter can also annotate any of the supported data types with respect to any of the others Like filtering the annotations are based on the relationships stored in the knowledge database unlike filtering any data which cannot be annotated as requested such as a SNP which is not located within any gene will still be included in the output with the annotation columns of the output simply left blank Put another way the difference between filtering and annotation is that filtering does not allow any blanks For example a list of SNPs can be annotated with positions to generate a new list of all the same SNPs but with extra columns containing the chromosome and genomic position for each SNP if any Any SNP with mul
50. ists outputting regione EEN 43 Example 4 Testing overlap of gene and source lists outputting regions coins 43 Example 5 Filter gene list based on sources and output LEGIONS miii as 44 Example 6 Output of genes found in pathway based input filtered by genotyping platform een 44 Example 7 Output of genes annotated by group found in pathway based input filtered by genotyping A eda a ao ed casa oe ca es aaa a i aaia 45 Example 8 Genes within data sources from a list of input genes filtered by genotyping platform output A AEE AAA E A T A AA 45 Example 9 Find overlap between two SNP lists and map the overlapping SNPS to the genes En 46 Example 10 Find overlapping SNPs between the two lists and map the overlapping SNPs to the genes regions groups ANA the SOUPCOS A Eed 46 Example 11 Mapping regions to genes using Biofilter based on percent of overlap EE 47 Example 12 Mapping regions to genes using Biofilter based on base pair overlap ENEE 48 Example 13 Annotating a list of gene symbols with SNPs regions groups and sources using Biofilter 48 Modeling Example conidios 49 SP I ieranonninniurunn A ARR E ARA ARR 50 KE 50 SEG a BS EE 51 Changes in Biofilter 2 0 Modeling cnica 52 Appendix 1 Ambiguity in Prior Knowledge sisssissicsscsesssensisnssscedsnsesssssasestsnsnsenssinasesksdenssssientesgensavens 53 Ambiguity Reduction Heuristics ii aaah ianndide ik ad daatacaudaaanhniwndntan 54 Ambiguity BT EE 54 Gene Ambiguity EXAMPleS ini
51. les the first column specifies the gene identifier type by which the second column will be interpreted group identifier type GROUP_IDENTIFIER_TYPE Argument type Default Specifies the identifier type with which to interpret all input group identifiers If no type or an empty type is provided all possible types are tried for each identifier If the special type is provided the default identifiers are interpreted as primary group labels allow ambiguous groups ALLOW_AMBIGUOUS_GROUPS Argument yes no Default no When enabled any input group identifier which matches multiple groups will be interpreted as if all of those groups had been specified When disabled the default ambiguous group identifiers are ignored group search GROUP_SEARCH Argument text Default none Adds or intersects the matching set of groups to or with the primary input dataset Matching groups are identified by searching for the provided text in all labels descriptions and identifiers associated with each known group source SOURCE Arguments lt source gt source Default none Adds or intersects the specified set of sources to or with the primary input dataset source file SOURCE_FILE Arguments lt file gt file Default none Adds or intersects the set of sources read from the specified files to or with the primary input dataset 20 Alternate Input Data Options alt snp ALT SNP Argumen
52. ller if given the Idprofile option If omitted pop_loader must be available on the path db The LOKI prior knowledge database file in which to generate LD adjusted gene regions The database must already contain the canonical gene regions keep data Generating LD profiles requires many intermediate files such as original LD data from HapMap and extrapolated LD data from LD Spline By default these intermediate files are deleted after use 1f this option is specified they will be left in place 59
53. ls group_label The provided identifier for an input group or the primary label for a group from the knowledge database group description The group s descriptive text from the knowledge database 1f any group identifiers All known identifiers for the group of any type formatted as type nameltype name group extra Any extra columns provided in the group input file source Shorthand for source_label source id An arbitrary unique ID number for the source included for completeness source label The source s name 32 gwas Shorthand for gwas_trait gwas_snps gwas_orbeta gwas_allele95ci gwas_riskAfreq gwas_pubmed gwas_ rs The RS which led to the GWAS annotation match gwas chr The chromosome on which the GWAS match was found gwas pos The basepair location at which the GWAS match was found gwas trait The GWAS annotation s associated trait or phenotype gwas snps The full list of SNPs in the GWAS association gwas orbeta The odds ratio or beta of the GWAS association gwas allele95ci The allele 95 confidence interval of the GWAS association gwas riskAfreq The risk allele frequency of the GWAS association gwas pubmed The PubMedID of the GWAS association Inspection of Biofilter s source code may reveal additional supported columns They are not documented here because they are only used
54. lt profile containing the original unmodified gene boundaries is used verify biofilter version VERIFY_BIOFILTER_VERSION Argument lt version gt Default none Ensure that the current version of Biofilter is the same as the one specified This option is added automatically to configuration files generated with REPORT_REPLICATION_FINGERPRINT verify loki version VERIFY_LOKI_VERSION Argument lt version gt Default none Ensure that the current version of LOKI is the same as the one specified This option is added automatically to configuration files generated with REPORT_REPLICATION_FINGERPRINT verify source loader VERIFY_SOURCE_LOADER Arguments lt source gt lt version gt Default none Ensure that the knowledge database file was generated with the specified version of a source data loader module Can be used multiple times to specify versions for different sources This option is added automatically to configuration files generated with REPORT_REPLICATION_FINGERPRINT verify source option VERIFY SOURCE OPTION Arguments lt source gt lt option gt lt value gt Default none Ensure that the knowledge database file was generated with the specified option value supplied to a source data loader module Can be used multiple times to specify different options or options for different sources This option is added automatically to configuration files generated with REPORT_REPLICATION_FINGERPRINT verify source file V
55. nably expect each member of the group to be a single gene but if the group contains proteins then we must be prepared for a single protein member to correspond to many genes To account for this LOKI differentiates between identifiers which refer directly to genes such as symbolic abbreviations or Entrez Gene ID numbers and identifiers which refer to proteins such as UniProt ID numbers that may in turn correspond to many genes If any of the identifiers provided for one member of a group is a protein identifier LOKI disregards any non protein identifiers If there is only one protein identifier then LOKI considers all genes which correspond to that protein to be members of the group with no ambiguity If there are multiple protein identifiers then there may be ambiguity if they do not correspond to the same set of genes Since protein identifiers are expected to correspond to multiple genes the concept of an identifier s quality no longer has meaning consequently whenever protein identifiers are involved the implication and quality heuristic strategies become functionally equivalent In both cases a gene s likelihood of being associated with a group is proportional to the number of protein identifiers which implicated it When no heuristics are used then all genes which are implicated by any of the protein identifiers are considered equally likely to belong in the group The testing knowledge included with Biofilter also conta
56. ned in the knowledge database file When re running a configuration file with these extra replication options Biofilter will use them to ensure that neither Biofilter itself nor the LOKI knowledge database file have been updated since the original analysis this in turn ensures that the re run analysis will produce the same or compatible results as the original Prior Knowledge Options knowledge KNOWLEDGE Argument lt file gt Default none Specifies the LOKI prior knowledge database file to use If a relative path is provided it will be tried first from the current working directory and then from the location of the Biofilter executable itself report genome build REPORT_GENOME_BUILD Argument yes no Default no Displays the build version s of the human reference genome which was used as the basis for all genomic positions in the prior knowledge database such as for SNP positions and gene regions Any position or region data provided as input must be converted to the same build version in order to match correctly with the prior knowledge report gene name stats REPORT_GENE_NAME_STATS Argument yes no Default no Generates a report of the gene identifier types available in the knowledge database report group name stats REPORT_GROUP_NAME_STATS Argument yes no Default no Generates a report of the group identifier types available in the knowledge database allow unvalidated snp positions ALLOW_UNVALIDATED_SN
57. nfiguration KNOWLEDGE test db REGION 1 1 60 REGION MATCH PERCENT 50 FILTER gene Output gene A B G 47 This output indicates that at least 50 of genes A B and C fall within the first 60 bases of the first chromosome Both genes A and B match 100 of the region while gene C matches 75 Example 12 Mapping regions to genes using Biofilter based on base pair overlap The genes overlapping region based on number of base pair overlap can also be determined via Biofilter Configuration KNOWLEDGE test db REGION 1 1 60 R E REGION MATCH BASES 10 LTER gene Output gene A B This output uses the region match bases argument to specify that Biofilter should filter genes that only match a minimum of 10 bases within the given input region Example 13 Annotating a list of gene symbols with SNPs regions groups and sources using Biofilter Configuration KNOWLEDGE test db GENE A BCDE FILTER gene snp region group source Output gene snp chr region start stop group source A rs A 8 22 red light A rs A 8 22 green light A rs A 8 22 blue light A rs A 8 ER gray light A rs A 8 22 cyan paint A rs12 A 8 22 red light A rsl2 A 8 22 green light A rsl2 A 8 22 blue light A rsl2 A 8 22 gray light A rsl2 A 8 22 cyan paint B rs13 B 2
58. nlike the SNP file format gene or group input files may alternatively include two columns separated by a tab character in this case the first column lists the type of the identifier which is in the second column on the same line and any additional columns after these two will be stored and returned via the gene_extra or group_extra output columns 27 The GENE_IDENTIFIER_TYPE and GROUP_IDENTIFIER_TYPE options specify the default type for any user provided gene or group identifiers respectively This applies to any identifiers given directly via the GENE or GROUP options and any identifiers listed in single column gene or group list input files These options do not apply to two column gene or group input files since those files specify their own identifier types in the first column An empty identifier type a blank in the first column of a two column gene input file or a GENE GROUP_IDENTIFIER_TYPE option with no argument causes Biofilter to attempt to interpret the identifier using any known type The special identifier type instead causes Biofilter to interpret identifiers as primary labels of genes or groups and the special type accepts the gene_id or group_id output values from a previous Biofilter run It is important to recall that gene and group identifiers can vary in their degree of uniqueness For analyses that depend on a gene s genomic region such as comparisons with SNPs or other positions it may b
59. np_extra output column If any part of the analysis involves any other data types however then the provided RS numbers will have to be mapped to positions using the prior knowledge database In this case a single RS number may correspond to multiple genomic positions or it may have no known position at least on the current genomic reference build For these reasons it may be preferable to provide positions directly if available rather than relying on SNP identifiers Example snp extra rs123 first snp 456 second snp rs789 third snp Position Data Input Files The input file format for position data is similar to the MAP file format used in PLINK pngu mgh harvard edu purcell plink data shtml map Up to four primary data columns are allowed separated by tab characters e Chromosome 1 22 X Y MT e RS number or other label e Genetic distance ignored by Biofilter e Base pair position If all four of these columns are provided then any additional columns will be stored and returned via the position_extra output column 26 Since the genetic distance column is not used by Biofilter it may be omitted entirely for a three column format equivalent to PLINK s map3 option The label column may also be omitted for a two column format including only the chromosome and position in this case a label of the form chr1 2345 will be automatically generated Note that if the label column is used it doe
60. of different groups among those sources For example a score of 2 3 indicates that the model appears in three different groups and those groups originated with two different sources Since the interaction models are based on genes appearing together in multiple groups Biofilter performs all model building analyses by first generating gene gene models These baseline models can then be converted into models of any type by expanding each side independently just like in a filtering analysis For example if the user requests SNP models Biofilter will take each baseline gene gene model separately map the two genes to all applicable SNPs and then return all possible pairings between those two sets of SNPs Primary and Alternate Input Datasets So far the descriptions and examples of Biofilter s various analysis modes have implied that all user input exists in a single dataset However Biofilter can support two independent sets of user input data These two datasets are used for slightly different things depending on the context and so whenever 10 input data is provided to Biofilter the user must specify which dataset it should be added to For this purpose there are corresponding primary and alternate input options for each type of data SNP and ALT SNP REGION and ALT REGION and so on In a filtering analysis only the primary input dataset is used any alternate input data has no effect In an annotation an
61. ofilter to be copied into a separate output report file This file also includes comments describing the error with each piece of data filter FILTER Argument lt type gt type Default none Perform a filtering analysis which outputs the specified type s If a single type is requested the output will be in exactly the same format that Biofilter requires as input for that data type additional types are simply appended left to right in the order requested annotate ANNOTATE Argument lt type gt type lt type gt type Default none Perform an annotation analysis which outputs the specified type s The starting point for the annotation is the first specified type or if a colon is used the combination of types before the colon all additional types are optional and will be left blank if no suitable match can be found model MODEL Argument lt type gt type type Default none Perform a modeling analysis which generates models of the specified type s If a colon is used the types before and after the colon will appear on the left and right sides of the generated models respectively with no colon both sides of the models will have the same type s 24 Input File Formats For all input files in Biofilter lines beginning with the symbol will be ignored This is useful for placing comments within input files that will not be a part of the analysis Configuration Fil
62. ommand line such as biofilter py option name or placed in one or more configuration files whose filenames are then provided on the command line such as biofilter py analysis config The former approach may be more convenient for setting up the necessary options to achieve the desired analysis but the latter approach is recommended for any final runs since the configuration file then serves as a record of exactly what was done Any number of configuration files may be used with options from later files overriding those from earlier files Options on the command line override those from any configuration file The available options are the same no matter where they appear but are formatted differently Options on the command line are lower case start with two dashes and may contain single dashes to separate words such as snp file while in a configuration file the same option would be in upper case contain no dashes and instead use underscores to separate words i e SNP _ FILE Many command line options also have alternative shorthand versions of one or a few letters such as s for snp file and aag for allow ambiguous genes All options are listed here in both their command line and configuration file forms If an option allows or requires any further arguments they are also noted along with their default values 1f any Arguments which are required are enclosed in lt angle brackets
63. on or the RS number with rs prefix for a SNP position from the knowledge database position chr The position s chromosome number or name position pos The position s basepair location position extra Any extra columns provided in the position input file region Shorthand for region_chr region_label region_start region_stop region id An arbitrary unique ID number for the region can be used to distinguish unlabeled regions with identical genomic start and stop locations 31 region label The provided or generated label for an input region or the primary label for a region from the knowledge database region chr The region s chromosome number or name region start The region s basepair start location region stop The region s basepair stop location region extra Any extra columns provided in the region input file generegion Shorthand for region_chr gene_label region_start region_stop Similar to region except that only gene regions from the knowledge database are returned even if the user also provided input regions gene Shorthand for gene_label gene_id An arbitrary unique ID number for the gene can be used to distinguish genes with identical labels gene_label The provided identifier for an input gene or the primary label for a gene from the knowledge database gene description The
64. on such as a copy number variation CNV insertion deletion indel gene coding region evolutionarily conserved region ECR functional region regulatory region or any other region of interest Specified by a name or other identifier i e A1BG or ENSG00000121410 Gene Used to refer to a known and documented gene whose genomic region and C3 associations with any pathways interactions or other groups can be retrieved from the knowledge database Specified by a name or other identifier i e lipid metabolic process or GO 0006629 Used to refer to a known and documented pathway ontological group protein interaction protein family or any other grouping of genes proteins or genomic regions that was provided by one of the external data sources Specified by name 1 e GO Source Used to refer to a specific external data source Some of these data types are closely related but behave in slightly different ways For example a SNP and a position may be interchangeable in most cases but not always some RS numbers have no known genomic position while some have more than one and any given genomic position could be associated with more than one RS number or none at all Similarly some genes have no confirmed genomic region while some have several and a given region might overlap or contain one gene or many or none The order in which these types have been listed is also significant it is the sequence in whi
65. only one gene Gene E therefore receives only 0 5 points while gene D wins with 1 5 total points Because the ambiguity can be fully resolved by either heuristic the ALLOW_AMBIGUOUS_KNOWLEDGE option will only have an effect if no heuristics are used at all In that case the group will contain all four possible genes A C D and E if the option is enabled but only A and C if it is disabled Example 2 magenta The magenta group demonstrates ambiguity which can only be resolved by the implication heuristic gene E is implicated by two identifiers DE and EF while genes D F and G are each only implicated by one identifier The quality heuristic will discard genes D and F 0 5 points each but cannot pick a winner between E and G because they both have a score of 1 0 gene E gets 0 5 each from the DE and EF identifiers while gene G gets 1 full point from G With no heuristics the ALLOW_AMBIGUOUS_KNOWLEDGE option will either include all four genes or none of them With the quality heuristic it can either include both winners E and G or nothing With the implication heuristic it has no effect here since the ambiguity was eliminated with that strategy Example 3 yellow The yellow group demonstrates ambiguity which can only be resolved by the quality heuristic gene G wins with a score of 1 5 0 5 from FG plus 1 0 from G The implication heuristic will discard gene E implicat
66. osition will still be considered a match with the region With no suffix or a b suffix the margin is interpreted as basepairs with a kb or mb suffix it is measured in kilobases or megabases respectively region match percent REGION_MATCH_PERCENT Argument lt percentage gt Default 100 Defines the minimum proportion of overlap between two regions in order to consider them a match The percentage is measured in terms of the shorter region such that 100 overlap always implies one region equal to or completely contained within the other When combined with REGION_MATCH_BASES both requirements are enforced independently For this reason the default value for REGION_MATCH_PERCENT is ignored if REGION_MATCH_BASES is used alone 22 region match bases REGION_MATCH_BASES Argument lt bases gt Default 0 Defines the minimum number of basepairs of overlap between two regions in order to consider them a match With no suffix or a b suffix the overlap is interpreted as basepairs with a kb or mb suffix it is measured in kilobases or megabases respectively When combined with REGION_MATCH_PERCENT both requirements are enforced independently Model Building Options maximum model count MAXIMUM_MODEL_COUNT Argument lt count gt Default 0 Limits the number of models that will be generated in order to reduce processing time A value of 0 the default means no limit alternate model filtering
67. ps to or with the alternate input dataset The specified groups will be interpreted according to the GROUP_IDENTIFIER_TYPE option alt group file ALT_GROUP_FILE Arguments lt file gt file Default none Adds or intersects the set of groups read from the specified files to or with the alternate input dataset Files must contain 1 or 2 columns separated by tabs For 1 column files genes are interpreted according to the GENE_IDENTIFIER_TYPE option For 2 column files the first column specifies the gene identifier type by which the second column will be interpreted alt group search ALT_GROUP_SEARCH Argument text Default none Adds or intersects the matching set of groups to or with the alternate input dataset Matching groups are identified by searching for the provided text in all labels descriptions and identifiers associated with each known group alt source ALT_SOURCE Arguments lt source gt source Default none Adds or intersects the specified set of sources to or with the alternate input dataset alt source file ALT_SOURCE_FILE Arguments lt file gt file Default none Adds or intersects the set of sources read from the specified files to or with the alternate input dataset Positional Matching Options region position margin REGION_POSITION_MARGIN Argument lt bases gt Default 0 Defines an extra margin beyond the boundaries of all genomic regions within which a p
68. ptions and values for each source can be shown with list sources finalize Argument none Causes the build script to discard all intermediate data and optimize the knowledge database after performing an update if any This reduces the knowledge database file size and greatly improves its performance however it will no longer be possible to update the file with any new source data verbose Argument none Prints additional informational messages to the screen test data Argument none Switches the build script into test mode in which it uses an alternate set of source loader modules These sources do not contain actual biological knowledge instead they specify a minimal simulated set of knowledge which can be easily visualized and used to test and understand the functionality of LOKI and Biofilter Knowledge database files created in test mode cannot be updated in the standard mode and vice versa Refer to the Example Knowledge section for more information Updating amp Archiving Prior Knowledge It is important to note that the various data sources integrated into LOKI can publish updated data at any time according to their own schedules This new data will not be available to Biofilter until the LOKI prior knowledge database is updated or regenerated We recommend that users become familiar with how often the data sources are updated and plan to update LOKI accordingly preferably at least once every few months
69. rs in the output 35 Example 2 Output a list of SNPs from a genotyping platform that correspond to a list of genes Input files inputl input2 snp gene rall A rs12 C rs13 E rs14 rs15 rsl6 Configuration KNOWLEDGE test db SNP_FILE inputl GENE_FILE input2 FILTER snp Output snp rs11 rs12 rs15 rsl6 Example 3 Input a list of groups output regions within those groups Configuration KNOWLEDGE test db GROUP red green cyan magenta orange indigo FILTER region Output chr region start stop A 8 22 B 28 52 E 54 62 3 P 14 18 3 Q 28 36 3 R 44 52 Example 4 Output a list of all genes within a data source Configuration KNOWLEDGE test db SOURCE light FILTER gene Output Q 0 5 0 031500U0Sd y 37 Example 5 Start with a list of genes output all the genes within particular groups Input files sources Oros atases Dias W ambiguous irks O ganas yregors O ewemesomes SNPs urea inputl input2 group red green cyan magenta orange indigo gene Doha p Configuration KNOWLEDGE test db GROUP_FILE inputl GENE FILE input2 FILTER region Output chr region start 1 A 8 al E 54 3 P 14 3 R 44
70. s three columns chromosome label position and so on More than one basic type can also be output together and is required for annotation and modeling analyses in which case the columns corresponding to any additional types are simply appended in order to the final output For example the analysis options on the left will produce the output columns on the right 30 FILTER position ehr position pos FILTER gene snp gene snp ANNOTATE gene region gene chr region start stop MODEL gene genel gene2 score Note that there are two different places Biofilter could draw from when outputting any given type of data one of the user input datasets or the prior knowledge database If an output type is requested which was not provided as input then the choice is clear and Biofilter will produce the requested output based on the data contained in the knowledge database For any data type which was provided as input however Biofilter will pull any corresponding output columns from the input data rather than the knowledge database This means for example that if regions are supplied as input and both gene and region are requested as output then the result may not be as expected The output will list both genes and regions and the genes in the first column will indeed be the ones whose genomic region matched one of the provided input regions However the region shown next to each gen
71. s not necessarily have to be a known SNP s RS number whatever arbitrary label is provided will be used by Biofilter to refer to the position whenever it appears in any output file Example chr label distance pos extra 7 rs123 24966446 first position 7 rs456 24962419 second position 3 rs789 29397015 third position Region Data Input Files The file format for region input data is similar to that of positional data Up to four primary data columns are allowed separated by tab characters e Chromosome 1 22 X Y MT e Gene symbol or other label e Base pair start position e Base pair stop position If all four of these columns are provided then any additional columns will be stored and returned via the region_extra output column As with positional data the label column does not necessarily have to be a known gene symbol and can be omitted entirely If the column is omitted then a label of the form chr1 2345 6789 will be generated automatically if labels are provided then Biofilter will use them to refer to the regions whenever they appear in any output file Example chr label start stop extra 7 THSD7A 11410061 11871823 first region 7 OSBPL3 24836158 25019759 second region 3 RBMS3 29322802 30051885 third region Gene and Group List Input Files Like the SNP input file format a gene or group input file may simply be a single column of identifiers U
72. terns are relevant to the user s analysis and a threshold value to specify what the user considers high LD Every LOKI knowledge database file begins with a default unnamed LD profile which contains the canonical gene region boundaries and therefore has no reference population or LD threshold All other LD profiles are calculated based on these original boundaries which means whenever the LOKI knowledge database is updated the LD profiles must also be re calculated to incorporate any changes in the original gene region boundaries In order to generate LD profiles Biofilter is distributed with a separate software tool called LD Spline This tool can use specific LD measurements from the HapMap project to extrapolate more general LD patterns which can in turn be used to calculate LD profiles containing adjusted gene region boundaries More information about LD Spline is available from www ritchielab psu edu Installing LD Spline LD Spline is written in C and must therefore be compiled for your local computing environment before it can be used To do this automatically as part of the Biofilter installation process simply use the dprofile option python setup py install ldprofile This will compile and install the Idspline executable along with a few supporting scripts which automate the process of generating and storing LD profiles in LOKI Generating LD Profiles The LOKI prior knowledge database file must be g
73. tional chr prefix alt region file ALT_REGION_FILE Arguments lt file gt file Default none Adds or intersects the set of regions read from the specified files to or with the alternate input dataset Files must contain 3 or 4 columns formatted as in the REGION option but separated by tabs instead of colons alt gene ALT_GENE Arguments lt gene gt gene Default none Adds or intersects the specified set of genes to or with the alternate input dataset The specified genes will be interpreted according to the GENE_IDENTIFIER_TYPE option alt gene file ALT_GENE_FILE Arguments lt file gt file Default none Adds or intersects the set of genes read from the specified files to or with the alternate input dataset Files must contain 1 or 2 columns separated by tabs For 1 column files genes are interpreted according to the GENE_IDENTIFIER_TYPE option For 2 column files the first column specifies the gene identifier type by which the second column will be interpreted 21 alt gene search ALT_GENE_SEARCH Argument text Default none Adds or intersects the matching set of genes to or with the alternate input dataset Matching genes are identified by searching for the provided text in all labels descriptions and identifiers associated with each known gene alt group ALT GROUP Arguments lt group gt group Default none Adds or intersects the specified set of grou
74. tiple known positions will be repeated and any SNP with no known position will have blanks in the added columns Similarly those same SNPs can be annotated with gene information the result is similar except that the added column contains the name of the gene containing the SNP s position In this case a blank value can mean two things either the SNP does not fall within any known gene region or the SNP has no known position with which to search for gene regions Annotations can also be generated for combinations of data types or for data types which were not provided as input In these cases the annotation will be for the output of a filtering analysis For example suppose the user provides a list of SNPs and a list of groups and then requests an annotation of genes to regions Since no genes were provided as input Biofilter will first perform a filtering analysis to identify all genes which contain at least one of the provided SNPs and are also part of at least one of the provided groups This filtered set of genes will then appear in the first column of the annotation output followed by each gene s genomic region if any Modeling The last of Biofilter s primary analysis modes is a little different from filtering and annotation In addition to simply cross referencing any given data with the other available prior knowledge Biofilter can also search for repeated patterns within the prior knowledge which might indicate the potential
75. ts lt snp gt snp Default none Adds or intersects the specified set of SNPs to or with the alternate input dataset SNPs must be provided as integer RS numbers with an optional rs prefix alt snp file ALT_SNP_FILE Arguments lt file gt file Default none Adds or intersects the set of SNPs read from the specified files to or with the alternate input dataset Files must contain a single column formatted as in the SNP option alt position ALT_POSITION Arguments lt position gt position Default none Adds or intersects the specified set of positions to or with the alternate input dataset Positions must be provided as 2 to 4 fields separated by colons chr pos chr label pos or chr label ignored pos Chromosomes may have an optional chr prefix alt position file ALT_POSITION_FILE Arguments lt file gt file Default none Adds or intersects the set of positions read from the specified files to or with the alternate input dataset Files must contain 2 to 4 columns formatted as in the POSITION option but separated by tabs instead of colons alt region ALT_REGION Arguments lt region gt region Default none Adds or intersects the specified set of regions to or with the alternate input dataset Regions must be provided as 3 or 4 fields separated by colons chr start stop or chr label start stop Chromosomes may have an op
76. ument type Default Specifies the identifier type with which to interpret all input gene identifiers If no type or an empty type is provided all possible types are tried for each identifier If the special type is provided the default identifiers are interpreted as primary gene labels 19 allow ambiguous genes ALLOW_AMBIGUOUS_GENES Argument yes no Default no When enabled any input gene identifier which matches multiple genes will be interpreted as if all of those genes had been specified When disabled the default ambiguous gene identifiers are ignored gene search GENE_SEARCH Argument text Default none Adds or intersects the matching set of genes to or with the primary input dataset Matching genes are identified by searching for the provided text in all labels descriptions and identifiers associated with each known gene group GROUP Arguments lt group gt group Default none Adds or intersects the specified set of groups to or with the primary input dataset The specified groups will be interpreted according to the GROUP_IDENTIFIER_TYPE option group file GROUP_FILE Arguments lt file gt file Default none Adds or intersects the set of groups read from the specified files to or with the primary input dataset Files must contain 1 or 2 columns separated by tabs For 1 column files genes are interpreted according to the GENE_IDENTIFIER_TYPE option For 2 column fi
77. urces Arguments source Default none List the specified source module loaders software versions and any options they accept If no sources are specified all available modules are listed cache only Argument none Causes the build script to skip checking any knowledge sources for available bulk data downloads allowing it to function without an internet connection Instead only the files already available in the provided from archive file will be processed If any source loader module is unable to find an expected file such as if no archive was provided that source loader will fail and no data will be updated for that source 13 update Arguments source Default all Instructs the build script to process the bulk data from the specified sources and update their representation in the knowledge database If no sources are specified all supported sources will be updated update except Arguments source Default none Similar to update but with the opposite meaning for the specified sources all supported sources will be updated except for the ones specified If no sources are specified none are excluded and all supported sources are updated option Arguments lt source gt lt options gt Default none Passes additional options to the specified source loader module The options string must be of the form option1 value option2 value for any number of options and values Supported o
Download Pdf Manuals
Related Search
Related Contents
Manual do utilizador Eurofase 16479-012 Installation Guide Garmin 4000 Series GPS Receiver User Manual Epson Equity I User's Manual TPV-PCS0400A(販売終了品) CAM743F User`s Manual (English) DB-O 平成24年度 総括研究報告書 Add-On Computer Peripherals (ACP) 1000Base-TX(RJ45) to 1000Base-XD(ST), 1550/1310nm Copyright © All rights reserved.
Failed to retrieve file