MATLAB 帮助中心
Combine two objects
combinedData = combine(data1,data2)
newObj = combine(data1,data2,'Name',objName)
combinedData = combine(data1,data2) combines sequence data from two objects of the same class (BioRead or BioMap) and returns the data combinedData in a new object. The combine function concatenates the properties of the two objects.
data1
data2
BioRead
BioMap
combinedData
combine
example
newObj = combine(data1,data2,'Name',objName) specifies the name objName for newObj.
newObj
objName
collapse all
Load the first data set.
br1 = BioRead('ex1.sam')
br1 = BioRead with properties: Quality: [1501x1 File indexed property] Sequence: [1501x1 File indexed property] Header: [1501x1 File indexed property] NSeqs: 1501 Name: ''
Load the second data set.
br2 = BioRead('ex2.sam')
br2 = BioRead with properties: Quality: [3307x1 File indexed property] Sequence: [3307x1 File indexed property] Header: [3307x1 File indexed property] NSeqs: 3307 Name: ''
Combine the two data sets. Set the name of the new object to 'combinedData'.
'combinedData'
br3 = combine(br1,br2,'Name','combinedData')
br3 = BioRead with properties: Quality: {4808×1 cell} Sequence: {4808×1 cell} Header: {4808×1 cell} NSeqs: 4808 Name: 'combinedData'
First sequence read data to be combined with the second sequence read data, specified as a BioRead or BioMap object.
Second sequence read data to be combined with the first sequence read data, specified as a BioRead or BioMap object.
''
Name of the combined object, specified as a character vector or string.
Introduced in R2010a
BioMap | BioRead
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处