473,412 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Martel Package from Biopython

Hello,

I know this is not the best place to ask this but I haven't had luck
in the Biopython forums with my questions, so I'll just try here.

I want to use the Martel package to do some parsing. I've found it to
be very powerful and convenient. Yet the documentation avaialble is
less than complete. I have a few questions on how to use it, if you
know the answers to my questions:

- How does Bio.Std.record affect the parsing of a Martel expression.
- How does Bio.RecordReader work? How does it interact with
Martel.HeaderFooter?
- Many of the matching objects (ie. Martel.Digits) have an attrs
argument. How does it work?

Thanks!

Apr 18 '07 #1
1 1091
On Apr 18, 12:28 pm, elventear <elvent...@gmail.comwrote:
Hello,

I know this is not the best place to ask this but I haven't had luck
in the Biopython forums with my questions, so I'll just try here.

I want to use the Martel package to do some parsing. I've found it to
be very powerful and convenient. Yet the documentation avaialble is
less than complete. I have a few questions on how to use it, if you
know the answers to my questions:

- How does Bio.Std.record affect the parsing of a Martel expression.
- How does Bio.RecordReader work? How does it interact with
Martel.HeaderFooter?
- Many of the matching objects (ie. Martel.Digits) have an attrs
argument. How does it work?

Thanks!
Andrew Dalke says in his blog that he finds pyparsing to be similar in
concept to Martel. I looked over the Martel presentations at his web
site, and I can see some similarities, but pyparsing has some of its
own peculiarities, too. So if Martel remains a mystery, you could
give pyparsing a shot. Pyparsing tries to make parser-writing a less
painful process, so it incorporates some conventions - most notably,
pyparsing assumes that whitespace is significant for the purposes of
word boundaries and such, but you grammar does not need to explicitly
spell out where whitespace would go. Or try one of these other
parsing packages on Ned Batchelder's web page:
http://nedbatchelder.com/text/python-parsers.html.

-- Paul

Apr 18 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jennifer | last post by:
I've created a DTS package and now I need to distribute it to different servers. I've been looking for a way to automatically/programatically create a DTS package, but have not found anything...
4
by: chris.dunigan | last post by:
I'm looking for an example of how to execute an existing DTS­ package from an ASP (VB)script and would appreciate any and all response. ­I don't even know if it's possible Thanks - Chuck...
3
by: Petterson Mikael | last post by:
Hi, I have the following package names ( in an xml) that I will transform to html. I need to sort them. <package name="se.company.product.subproduct.boam.fpx.testsignals"> <package...
10
by: datapro01 | last post by:
Running DB2 8.1.6A on AIX 5.1 We are experience package cache overflows. The high water mark for package cache is showing as 16,108,513 bytes, or approximately 3933 4K pages. The package...
3
by: shorti | last post by:
running on AIX with DB2 v8.2.2 I ran across a problem with naming source files with similar names. For instance, if I have these three files: upd_startaccessingdb.sqc upd_startusingdb.sqc...
0
debasisdas
by: debasisdas | last post by:
The following thread contains some useful tips/sample codes regarding PACKAGES in oracle, that the forum members may find useful. A package is a collection of procedures,functions,cursors,global...
0
debasisdas
by: debasisdas | last post by:
SAMPLE PACKAGE EX#3 ==================== PACKAGE SPECIFICATION -------------------------------------------- CREATE OR REPLACE PACKAGE MYPACK AS PROCEDURE SHOWENAME(EMPID IN NUMBER); FUNCTION...
0
by: Gabriel Genellina | last post by:
En Tue, 09 Sep 2008 05:53:19 -0300, Beema Shafreen <beema.shafreen@gmail.comescribió: Ensure that you don't have *another* Bio module that is being imported instead of the true one. --...
0
by: Steven Samuel Cole | last post by:
Hi Stephane, thanks for your reply! :-) I do not get any notification or warning or whatever from dpkg, all output I get when running # sudo dpkg -i python-<package name>_0.0.1-4927-1_all.deb...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.