コード例 #1
0
ファイル: analyze.py プロジェクト: kenjsc/CAMpping
	def get_bins(self, idruns, bqs):
		"""Function takes a list of idruns of the format \d{4}[A-F] (4 digits followed by a
		letter A through F). Returns a mzbin heatmap object generated from the mass spec data
		in the loaded database.
		"""
		runs = self.get_idruns(idruns, bqs)

		return mb.heatmap(*[ad for ad in runs if ad.isotopes[0].rt > 0.35])
コード例 #2
0
ファイル: analyze.py.bak.py プロジェクト: kenjsc/CAMpping
	def get_bins(self, idruns, bqs):
		"""Function takes a list of idruns of the format \d{4}[A-F] (4 digits followed by a
		letter A through F). Returns a mzbin heatmap object generated from the mass spec data
		in the loaded database.
		"""
		corrected_runs = []
		for idrun in idruns:
			if len(idrun) == 5:
				corrected_runs.append(idrun + "_")
			else:
				corrected_runs.append(idrun)
		runs = self.get_idruns(corrected_runs, bqs)

		return mb.heatmap(*[ad for ad in runs if ad.isotopes[0].rt > 0.35])