{"action":"created","issue":{"url":"https://api.github.com/repos/marcelm/cutadapt/issues/161","labels_url":"https://api.github.com/repos/marcelm/cutadapt/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/marcelm/cutadapt/issues/161/comments","events_url":"https://api.github.com/repos/marcelm/cutadapt/issues/161/events","html_url":"https://github.com/marcelm/cutadapt/issues/161","id":121084295,"number":161,"title":"Documentation on using as a python module","user":{"login":"astewart-twist","id":14282772,"avatar_url":"https://avatars.githubusercontent.com/u/14282772?v=3","gravatar_id":"","url":"https://api.github.com/users/astewart-twist","html_url":"https://github.com/astewart-twist","followers_url":"https://api.github.com/users/astewart-twist/followers","following_url":"https://api.github.com/users/astewart-twist/following{/other_user}","gists_url":"https://api.github.com/users/astewart-twist/gists{/gist_id}","starred_url":"https://api.github.com/users/astewart-twist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astewart-twist/subscriptions","organizations_url":"https://api.github.com/users/astewart-twist/orgs","repos_url":"https://api.github.com/users/astewart-twist/repos","events_url":"https://api.github.com/users/astewart-twist/events{/privacy}","received_events_url":"https://api.github.com/users/astewart-twist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-08T19:48:03Z","updated_at":"2015-12-10T18:01:07Z","closed_at":null,"body":"Awesome tool!   Would be interested in seeing whether its simple enough to use as a module inside a python script rather than as a command line tool.  Thoughts?"},"comment":{"url":"https://api.github.com/repos/marcelm/cutadapt/issues/comments/163703657","html_url":"https://github.com/marcelm/cutadapt/issues/161#issuecomment-163703657","issue_url":"https://api.github.com/repos/marcelm/cutadapt/issues/161","id":163703657,"user":{"login":"astewart-twist","id":14282772,"avatar_url":"https://avatars.githubusercontent.com/u/14282772?v=3","gravatar_id":"","url":"https://api.github.com/users/astewart-twist","html_url":"https://github.com/astewart-twist","followers_url":"https://api.github.com/users/astewart-twist/followers","following_url":"https://api.github.com/users/astewart-twist/following{/other_user}","gists_url":"https://api.github.com/users/astewart-twist/gists{/gist_id}","starred_url":"https://api.github.com/users/astewart-twist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astewart-twist/subscriptions","organizations_url":"https://api.github.com/users/astewart-twist/orgs","repos_url":"https://api.github.com/users/astewart-twist/repos","events_url":"https://api.github.com/users/astewart-twist/events{/privacy}","received_events_url":"https://api.github.com/users/astewart-twist/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T18:01:07Z","updated_at":"2015-12-10T18:01:07Z","body":"Sure.  Mostly just iterating through fastq files and trimming out adaptors.  Right now Im just calling cutadapt as a script via subprocess, which is fine, but ideally I would just import the module and makes calls to whatever the entrypoint functions are.  I can figure it out myself by going through the code, but was just wondering if you or anyone has been already doing this and had good examples / documentation."}}