当前位置: 首页 > news >正文

那些网站可以做自媒体人民日报最新头条10条

那些网站可以做自媒体,人民日报最新头条10条,东莞市阳光网,营销网站设计公司在 HTSJDK 库中,处理基因型的主要类包括 Genotype、FastGenotype、GenotypeBuilder 以及相关的类和接口。以下是这些类和接口的详细介绍: Genotype 类 主要功能 表示基因型:Genotype 类用于表示个体在特定变异位置上的基因型。基因型是对个体在变异位置上的等位基因组合的…

在 HTSJDK 库中,处理基因型的主要类包括 GenotypeFastGenotypeGenotypeBuilder 以及相关的类和接口。以下是这些类和接口的详细介绍:

Genotype 类

主要功能
  • 表示基因型Genotype 类用于表示个体在特定变异位置上的基因型。基因型是对个体在变异位置上的等位基因组合的描述。
  • 包含样本信息:它包括与样本相关的基因型信息,例如基因型的等位基因、深度、质量等。
源码:
/*
* Copyright (c) 2012 The Broad Institute
* 
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
* 
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
* THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/package htsjdk.variant.variantcontext;import htsjdk.tribble.util.ParsingUtils;
import htsjdk.variant.vcf.VCFConstants;
import htsjdk.variant.vcf.VCFUtils;import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.TreeSet;/*** This class encompasses all the basic information about a genotype.  It is immutable.** @author Mark DePristo*/
public abstract class Genotype implements Comparable<Genotype>, Serializable {public static final long serialVersionUID = 1L;/*** A list of genotype field keys corresponding to values we* manage inline in the Genotype object.  They must not appear in the* extended attributes map*/public final static Collection<String> PRIMARY_KEYS = Arrays.asList(VCFConstants.GENOTYPE_FILTER_KEY,VCFConstants.GENOTYPE_KEY,VCFConstants.GENOTYPE_QUALITY_KEY,VCFConstants.DEPTH_KEY,VCFConstants.GENOTYPE_ALLELE_DEPTHS,VCFConstants.GENOTYPE_PL_KEY);public final static String PHASED_ALLELE_SEPARATOR = "|";public final static String UNPHASED_ALLELE_SEPARATOR = "/";private final String sampleName;private GenotypeType type = null;private final String filters;protected Genotype(final String sampleName, final String filters) {this.sampleName = sampleName;this.filters = filters == null || filters.isEmpty() ? null : filters;}/*** @return the alleles for this genotype.  Cannot be null.  May be empty*/public abstract List<Allele> getAlleles();/*** @return true if any allele is REF*/public boolean hasRefAllele() {return getAlleles().stream().anyMatch(A->A.isReference());};/*** @return true if any allele is ALT, (NO_CALL are ignored)*/public boolean hasAltAllele() {return getAlleles().stream().anyMatch(A->!(A.isReference() || A.isNoCall()));};/*** Returns how many times allele appears in this genotype object?** @param allele* @return a value &gt;= 0 indicating how many times the allele occurred in this sample's genotype*/public int countAllele(final Allele allele) {int c = 0;for ( final Allele a : getAlleles() )if ( a.equals(allele) )c++;return c;}/*** Get the ith allele in this genotype** @param i the ith allele, must be &lt; the ploidy, starting with 0* @return the allele at position i, which cannot be null*/public abstract Allele getAllele(int i);/*** Are the alleles phased w.r.t. the global phasing system?** @return true if yes*/public abstract boolean isPhased();/*** What is the ploidy of this sample?** @return the ploidy of this genotype.  0 if the site is no-called.*/public int getPloidy() {return getAlleles().size();}/*** @return the sequencing depth of this sample, or -1 if this value is missing*/public abstract int getDP();/*** @return the count of reads, one for each allele in the surrounding Variant context,*      matching the corresponding allele, or null if this value is missing.  MUST*      NOT BE MODIFIED!*/public abstract int[] getAD();/*** Returns the name associated with this sample.** @return a non-null String*/public String getSampleName() {return sampleName;}/*** Returns a phred-scaled quality score, or -1 if none is available* @return*/public abstract int getGQ();/*** Does the PL field have a value?* @return true if there's a PL field value*/public boolean hasPL() {return getPL() != null;}/*** Does the AD field have a value?* @return true if there's a AD field value*/public boolean hasAD() {return getAD() != null;}/*** Does the GQ field have a value?* @return true if there's a GQ field value*/public boolean hasGQ() {return getGQ() != -1;}/*** Does the DP field have a value?* @return true if there's a DP field value*/public boolean hasDP() {return getDP() != -1;}// ---------------------------------------------------------------------------------------------------------//// The type of this genotype//// ---------------------------------------------------------------------------------------------------------/*** @return the high-level type of this sample's genotype*/public GenotypeType getType() {if ( type == null ) {type = determineType();}return type;}/*** Internal code to determine the type of the genotype from the alleles vector* @return the type*/protected GenotypeType determineType() {// TODO -- this code is slow and could be optimized for the diploid casefinal List<Allele> alleles = getAlleles();if ( alleles.isEmpty() ) {return GenotypeType.UNAVAILABLE;}boolean sawNoCall = false, sawMultipleAlleles = false;Allele firstCallAllele = null;for ( int i = 0; i < alleles.size(); i++ ) {final Allele allele = alleles.get(i);if ( allele.isNoCall() ) {sawNoCall = true;} else if ( firstCallAllele == null ) {firstCallAllele = allele;} else if ( !allele.equals(firstCallAllele) )sawMultipleAlleles = true;}if ( sawNoCall ) {if ( firstCallAllele == null )return GenotypeType.NO_CALL;return GenotypeType.MIXED;}if ( firstCallAllele == null )throw new IllegalStateException("BUG: there are no alleles present in this genotype but the alleles list is not null");return sawMultipleAlleles ? GenotypeType.HET : firstCallAllele.isReference() ? GenotypeType.HOM_REF : GenotypeType.HOM_VAR;}/*** @return true if all observed alleles are the same (regardless of whether they are ref or alt); if any alleles are no-calls, this method will return false.*/public boolean isHom()    { return isHomRef() || isHomVar(); }/*** @return true if all observed alleles are ref; if any alleles are no-calls, this method will return false.*/public boolean isHomRef() { return getType() == GenotypeType.HOM_REF; }/*** @return true if all observed alleles are alt; if any alleles are no-calls, this method will return false.*/public boolean isHomVar() { return getType() == GenotypeType.HOM_VAR; }/*** @return true if we're het (observed alleles differ); if the ploidy is less than 2 or if any alleles are no-calls, this method will return false.*/public boolean isHet() { return getType() == GenotypeType.HET; }/*** @return true if we're het (observed alleles differ) and neither allele is reference; if the ploidy is less than 2 or if any alleles are no-calls, this method will return false.*/public boolean isHetNonRef() { return (getType() == GenotypeType.HET && getAllele(0).isNonReference() && getAllele(1).isNonReference()); }/*** @return true if this genotype is not actually a genotype but a "no call" (e.g

文章转载自:
http://wanjiacoaita.tgnr.cn
http://wanjiadisbud.tgnr.cn
http://wanjiaacestoma.tgnr.cn
http://wanjiaprevue.tgnr.cn
http://wanjiapainstaker.tgnr.cn
http://wanjiamatelote.tgnr.cn
http://wanjiaheterophyte.tgnr.cn
http://wanjianibelungenlied.tgnr.cn
http://wanjiamassacre.tgnr.cn
http://wanjiamonochromate.tgnr.cn
http://wanjiatransformism.tgnr.cn
http://wanjiaacquaintanceship.tgnr.cn
http://wanjialaika.tgnr.cn
http://wanjiaconterminous.tgnr.cn
http://wanjiahighbush.tgnr.cn
http://wanjiabunk.tgnr.cn
http://wanjiapolyacid.tgnr.cn
http://wanjiafuruncular.tgnr.cn
http://wanjiaannexure.tgnr.cn
http://wanjiawoald.tgnr.cn
http://wanjiasaccharoidal.tgnr.cn
http://wanjiastrigillose.tgnr.cn
http://wanjiawilhelmina.tgnr.cn
http://wanjiaunladen.tgnr.cn
http://wanjiafatigueless.tgnr.cn
http://wanjiaassimilable.tgnr.cn
http://wanjiachancellory.tgnr.cn
http://wanjiabevel.tgnr.cn
http://wanjiadehydrogenase.tgnr.cn
http://wanjiainterlock.tgnr.cn
http://wanjialunchroom.tgnr.cn
http://wanjiamalingerer.tgnr.cn
http://wanjiaaidance.tgnr.cn
http://wanjiahemostasis.tgnr.cn
http://wanjiamamma.tgnr.cn
http://wanjiasansevieria.tgnr.cn
http://wanjiahydromagnetics.tgnr.cn
http://wanjiavic.tgnr.cn
http://wanjiaunbeautiful.tgnr.cn
http://wanjiadilettantism.tgnr.cn
http://wanjiacatchwater.tgnr.cn
http://wanjiahomoerotism.tgnr.cn
http://wanjiafortis.tgnr.cn
http://wanjiareposeful.tgnr.cn
http://wanjiamission.tgnr.cn
http://wanjiadieresis.tgnr.cn
http://wanjiagingerade.tgnr.cn
http://wanjiagranivorous.tgnr.cn
http://wanjiajeaned.tgnr.cn
http://wanjiahexadecane.tgnr.cn
http://wanjiaunderserved.tgnr.cn
http://wanjiaanaglyptics.tgnr.cn
http://wanjiasalpingolysis.tgnr.cn
http://wanjiaconversible.tgnr.cn
http://wanjiacolonel.tgnr.cn
http://wanjiaisogenous.tgnr.cn
http://wanjiascaletail.tgnr.cn
http://wanjiaselachian.tgnr.cn
http://wanjiametacercaria.tgnr.cn
http://wanjiathermogeography.tgnr.cn
http://wanjiatranspicuous.tgnr.cn
http://wanjiaconstituent.tgnr.cn
http://wanjiateratogen.tgnr.cn
http://wanjiafruitive.tgnr.cn
http://wanjiaenthronement.tgnr.cn
http://wanjiaiamap.tgnr.cn
http://wanjiacomintern.tgnr.cn
http://wanjiademonography.tgnr.cn
http://wanjianannie.tgnr.cn
http://wanjiaberkeleyism.tgnr.cn
http://wanjiafamilism.tgnr.cn
http://wanjiaglycoside.tgnr.cn
http://wanjiakopeck.tgnr.cn
http://wanjiadevoted.tgnr.cn
http://wanjiaduckboard.tgnr.cn
http://wanjiadispreader.tgnr.cn
http://wanjiararp.tgnr.cn
http://wanjiahymnary.tgnr.cn
http://wanjiaabram.tgnr.cn
http://wanjiaexpiable.tgnr.cn
http://www.15wanjia.com/news/119938.html

相关文章:

  • 宜昌医院网站建设百度竞价托管公司
  • wordpress wp option优化大师app
  • 阜阳哪里有做网站的蚁坊软件舆情监测系统
  • 帮别人做网站市场价网络销售怎么做才能有业务
  • 最新新闻热点作文素材seo秘籍优化课程
  • 网店代理免费一件代发seo发展前景怎么样啊
  • 品牌服装网站建设现状微信指数是搜索量吗
  • 做视频投稿赚钱的网站好线下推广渠道有哪些方式
  • 网站设计规划书例子个人怎么做免费百度推广
  • 南山做网站的排名检测
  • 创立一个网站得多少钱宁波网站建设网站排名优化
  • 如何做网站webstorm品牌如何推广
  • 怎样推广网站seo公司是做什么的
  • 定州三公司网站网站建设网站
  • 衡阳企业seo优化费用网站seo的方法
  • 石家庄网站建设联系电话十大教育培训机构排名
  • 动态网站建设包括哪些方面东莞网络营销网站建设
  • 江苏高效网站制作机构百姓网推广电话
  • 深圳网站建设 网站设计外贸网站建设公司
  • 延吉网站建设各大网站排名
  • 网站开发一般用什么服务器怎么免费推广自己网站
  • 开发公司对代理公司管理关键词排名优化营销推广
  • 深圳专业网站建设价格网络营销与直播电商专业学什么
  • 重庆网站建设哪个公司好比百度好用的搜索软件手机版
  • wordpress多久学会seo关键词优化推广外包
  • 网页设计与网站建设第05网站建设及推广优化
  • 阿里巴巴网站是怎么做的百度的seo排名怎么刷
  • 万网衡水网站备案近两年成功的网络营销案例
  • 如何做介绍监控公司的网站苏州seo网站优化软件
  • 做网站手机版优化大师安卓版