Python 如何使用Fragman输出具有拟合x轴值的原始数据

Python 如何使用Fragman输出具有拟合x轴值的原始数据,python,r,dataframe,plot,Python,R,Dataframe,Plot,Fragman包读入.fsa文件,其中包含一些峰值的数据。每个文件包含5个通道中的峰值或颜色。x轴是以秒为单位的时间,y轴是峰值高度。一个通道是阶梯,它包含以碱基对(bp)为单位的已知大小的峰值。Fragman使用此梯形通道将所有通道的x轴转换为bp单位。然后,它在图形中绘制图形,bp在x轴上,峰值高度在y轴上 我需要的不是绘制数据,而是具有拟合bp值的原始数据——理想情况下,每个.fsa文件有三列:1)峰值高度2)时间(以秒为单位3)大小(以bp为单位) 通过查看“overview2”函数(F

Fragman包读入.fsa文件,其中包含一些峰值的数据。每个文件包含5个通道中的峰值或颜色。x轴是以秒为单位的时间,y轴是峰值高度。一个通道是阶梯,它包含以碱基对(bp)为单位的已知大小的峰值。Fragman使用此梯形通道将所有通道的x轴转换为bp单位。然后,它在图形中绘制图形,bp在x轴上,峰值高度在y轴上

我需要的不是绘制数据,而是具有拟合bp值的原始数据——理想情况下,每个.fsa文件有三列:1)峰值高度2)时间(以秒为单位3)大小(以bp为单位)

通过查看“overview2”函数(Fragman:::overview2)中的代码,该函数创建我需要的数据,然后使用它进行绘图。但是,我在函数中看不到哪个对象是最好的尝试和返回对象。有人能帮我吗

下面是一个成功的例子:

data(my.plants)
my.plants <- my.plants[1:2] #this is what the .fsa data looks like
plot(my.plants) #converts it to what the .fsa data looks like after the program's imported it.
my.ladder <- c(50, 75, 100, 125, 129, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375) #the size of the known peaks in the ladder channel
ladder.info.attach(stored=my.plants, ladder=my.ladder) #This function adds the known peak heights to the ladder channel.
overview2(my.inds=my.plants, channel = 2:3, ladder=my.ladder, init.thresh=5000) #This is the function that converts the x-axis from seconds to bp, but it then carries on and plots the data. I just want it to export a list or table for each file.
数据(my.plants)
我的植物